Remix
/
React Router
Core
Web
Native
Announcements
The Future of React Router
Examples
Basic
URL Parameters
Nesting
Redirects (Auth)
Custom Link
Preventing Transitions
No Match (404)
Recursive Paths
Sidebar
Animated Transitions
Route Config
Modal Gallery
StaticRouter Context
Query Parameters
Guides
Quick Start
Primary Components
Server Rendering
Code Splitting
Scroll Restoration
Philosophy
Testing
Deep Redux Integration
Static Routes
API
Hooks
useHistory
useLocation
useParams
useRouteMatch
<BrowserRouter>
basename: string
getUserConfirmation: func
forceRefresh: bool
keyLength: number
children: node
<HashRouter>
basename: string
getUserConfirmation: func
hashType: string
children: node
<Link>
to: string
to: object
to: func
replace: bool
innerRef: func
innerRef: RefObject
component: React.Component
others
<NavLink>
className: string | func
activeClassName: string
style: object | func
activeStyle: object
exact: bool
strict: bool
isActive: func
location: object
aria-current: string
<Prompt>
<MemoryRouter>
initialEntries: array
initialIndex: number
getUserConfirmation: func
keyLength: number
children: node
<Redirect>
to: string
to: object
push: bool
from: string
exact: bool
strict: bool
sensitive: bool
<Route>
Route render methods
Route props
component
render: func
children: func
path: string | string[]
exact: bool
strict: bool
location: object
sensitive: bool
<Router>
history: object
children: node
<StaticRouter>
basename: string
location: string
location: object
context: object
children: node
<Switch>
location: object
children: node
generatePath
pattern: string
params: object
history
history is mutable
location
match
null matches
matchPath
pathname
props
returns
withRouter
Component.WrappedComponent
wrappedComponentRef: func