Rocon Website

useLocation

useLocation(): Location;

The useLocation hook returns a location that represents the current location. Every time the current location changes, this hook triggers a rerendering and returns a new location object.