1. 中文文档
版本:4.x
1.1. 指南
1.2. API
<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
- replace: bool
<NavLink>- activeClassName: string
- activeStyle: object
- exact: bool
- strict: bool
- isActive: func
- location: object
<Prompt><MemoryRouter>- initialEntries: array
- initialIndex: number
- getUserConfirmation: func
- keyLength: number
- children: node
<Redirect>- to: string
- to: object
- push: bool
- from: string
<Route>- Route render methods
- Route props
- component
- render: func
- children: func
- path: string
- exact: bool
- strict: bool
- location: object
<Router>- history: object
- children: node
<StaticRouter>- basename: string
- location: string
- location: object
- context: object
- children: node
<Switch>- Switch props
history- history is mutable
locationmatchmatchPath- pathname
- props
withRouter- Component.WrappedComponent
- wrappedComponentRef: func