• 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>
    );

    Parameters

    Returns ReactElement<any, string | JSXElementConstructor<any>>