HistoryRouter
On this page

unstable_HistoryRouter



This API is experimental and subject to breaking changes in minor/patch releases. Please use with caution and pay very close attention to release notes for relevant changes.

Summary

Reference Documentation ↗

A declarative <Router> that accepts a pre-instantiated history object. It's important to note that using your own history object is highly discouraged and may add two versions of the history library to your bundles unless you use the same version of the history library that React Router uses internally.

Signature

function HistoryRouter({ basename, children, history, }: HistoryRouterProps)

Props

basename

Application basename

children

<Route> components describing your route configuration

history

History implementation for use by the router

Docs and examples CC 4.0
Edit