useSplat

A hook to retrieve the url splat.

import { useSplat } from 'react-sprout';

let splat = useSplat();
  • Name
    splat
    Type
    Array
    Description

    An array of the remaining url segments of the route