Component library for rendering Google Maps in React
npm install react-google-map-wrapperreact-google-map-wrapper is a React component library for rendering Google Maps.
You can see an example here.
``tsx
import { Suspense } from 'react';
import { GoogleMap, GoogleMapApiLoader, Marker } from 'react-google-map-wrapper';
function Map() {
return (
);
}
function App() {
return (
{/ Load the google map api /}
);
}
`
`bash`
npm install react-google-map-wrapper # or yarn add react-google-map-wrapper or pnpm add react-google-map-wrapper
You can find the documentation on the website.
Check out the Getting Started page for a quick overview.
react-google-map-wrapper` is MIT licensed.