react-hook-google-maps
React useGoogleMaps hook
Easiest way to use Google Maps in your React application.
For Google API documentation please check https://developers.google.com/maps/documentation/javascript/reference
Install
npm install --save react-hook-google-maps
Usage
import * as React from "react"; import useGoogleMaps from "react-hook-google-maps"; const App = const ref map google = ; console; // instance of created Map object (https://developers.google.com/maps/documentation/javascript/reference/map) console; // google API object (easily get google.maps.LatLng or google.maps.Marker or any other Google Maps class) return <div = = />;; ;
Example
License
Author
Jan Grzegorowski