react-geolocated
React.js hook for using Geolocation API
Elevator pitch
react-geolocated is a configurable React Hook that makes using the Geolocation API easy, abstracting away some browser-specific quirks (differences on how they handle permissions for example).
Demo
Getting the location data…
The demo source code is available on GitHub, as well as the README with configuration options and other details.