useLocation

A hook to get the current location.

import { useLocation } from 'react-sprout';

let location = useLocation();
  • Name
    location
    Type
    URL
    Description

    The current location of the router