0
我使用的是ES2015反应javascript和当我使用谷歌,地图反应的包我有我的控制台以下异常:谷歌 - 地图反应的不工作
warning.js: 36警告:不建议使用主React包 访问PropType。改为使用npm中的prop-types包。
map.jsx:
import React , {Component} from 'react';
import {Map} from 'google-maps-react';
class MapView extends Component{
render(){
return(
<div className="google-map">
<Map google={this.props.google} zoom={14} />
</div>
)
}
}
export default MapView;