GitHub

Isomorphic Hooks

useParams

Retrieve URL parameters of the current route.

Client / Server


Usage

import { useParams } from '@microeinhundert/radonis'


const params = useParams()


console.log(params) // => `{ paramKey: 'Param value' }`
Previous
useRoutes