A component to wrap the loading of the Google Maps JavaScript API.
import { Wrapper } from '@googlemaps/react-wrapper';const MyApp = () => ( <Wrapper apiKey={'YOUR_API_KEY'}> <MyMapComponent /> </Wrapper>); Copy
import { Wrapper } from '@googlemaps/react-wrapper';const MyApp = () => ( <Wrapper apiKey={'YOUR_API_KEY'}> <MyMapComponent /> </Wrapper>);
A component to wrap the loading of the Google Maps JavaScript API.