• Preparing search index...
  • The search index is not available
@xarc/react-router
  • @xarc/react-router
  • browser
  • ReactRouterDom
  • useParams

Function useParams

  • useParams<ParamsOrKey>(): Readonly<[ParamsOrKey] extends [string]
        ? Params<ParamsOrKey>
        : Partial<ParamsOrKey>>
  • Returns an object of key/value pairs of the dynamic params from the current URL that were matched by the route path.

    Type Parameters

    • ParamsOrKey extends string | Record<string, string> = string

    Returns Readonly<[ParamsOrKey] extends [string]
        ? Params<ParamsOrKey>
        : Partial<ParamsOrKey>>

    See

    https://reactrouter.com/hooks/use-params

    • Defined in common/temp/node_modules/.pnpm/react-router@6.23.1_react@18.3.1/node_modules/react-router/dist/lib/hooks.d.ts:79

Settings

Member Visibility

Theme

@xarc/react-router
  • Loading...

Generated using TypeDoc