useParams

A hook to retrieve the url params.

import { useParams } from 'react-sprout';

let params = useParams();
  • Name
    params
    Type
    Object
    Description

    An object containing the url params of the route and parent routes