📅  最后修改于: 2022-03-11 15:03:34.638000             🧑  作者: Mango
import React, { Component } from 'react';import GoogleMapReact from 'google-map-react'; const AnyReactComponent = ({ text }) => {text}; class SimpleMap extends Component { static defaultProps = { center: { lat: 59.95, lng: 30.33 }, zoom: 11 }; render() { return ( // Important! Always set the container height explicitly ); }} export default SimpleMap;