准备搜索索引...
搜索索引不可用
React Router API 参考
React Router API 参考
react-router
模块 react-router
react-router
是 React Router 项目中的主要包。
安装
npm
i
react-router
Copy
索引
组件
Await
Form
Link
Links
Meta
Navigate
Nav
Link
Outlet
Prefetch
Page
Links
Route
Router
Routes
Scripts
Scroll
Restoration
Server
Router
Hooks
unstable_
use
Prompt
use
Action
Data
use
Async
Error
use
Async
Value
use
Before
Unload
use
Blocker
use
Fetcher
use
Fetchers
use
Form
Action
use
Href
use
In
Router
Context
use
Link
Click
Handler
use
Loader
Data
use
Location
use
Match
use
Matches
use
Navigate
use
Navigation
use
Navigation
Type
use
Outlet
use
Outlet
Context
use
Params
use
Resolved
Path
use
Revalidator
use
Route
Error
use
Route
Loader
Data
use
Routes
use
Search
Params
use
Submit
use
View
Transition
State
数据路由器
create
Browser
Router
create
Hash
Router
create
Memory
Router
create
Static
Router
组件路由器
Browser
Router
Hash
Router
Memory
Router
Static
Router
Static
Router
Provider
unstable_
History
Router
工具
create
Path
create
Routes
From
Children
create
Routes
From
Elements
create
Routes
Stub
create
Search
Params
create
Static
Handler
data
generate
Path
is
Route
Error
Response
match
Path
match
Routes
parse
Path
redirect
redirect
Document
render
Matches
replace
resolve
Path
类型
Await
Props
Browser
Router
Props
Fetcher
Form
Props
Form
Props
Hash
Router
Props
History
Router
Props
Index
Route
Props
Layout
Route
Props
Link
Props
Memory
Router
Props
Navigate
Props
Nav
Link
Props
Outlet
Props
Path
Route
Props
Router
Props
Routes
Props
Scripts
Props
其他
Navigation
Type
UNSAFE_
Server
Mode
UNSAFE_
Data
With
Response
Init
UNSAFE_
Remix
Error
Boundary
Action
Function
Action
Function
Args
App
Load
Context
Cookie
Cookie
Parse
Options
Cookie
Serialize
Options
Cookie
Signature
Options
Data
Route
Match
Data
Router
Data
Strategy
Function
Data
Strategy
Function
Args
Data
Strategy
Match
Data
Strategy
Result
Entry
Context
Fetcher
Submit
Function
Fetcher
Submit
Options
Get
Scroll
Position
Function
Get
Scroll
Restoration
Key
Function
Handle
Data
Request
Function
Handle
Document
Request
Function
Handle
Error
Function
Headers
Function
Index
Route
Object
Lazy
Route
Function
Links
Function
Loader
Function
Args
Location
Meta
Args
Meta
Function
Navigate
Function
Navigate
Options
Navigator
Non
Index
Route
Object
Page
Link
Descriptor
Path
Path
Match
Path
Pattern
Route
Match
Router
Init
Router
Provider
Props
Router
State
Router
Subscriber
Routes
Test
Stub
Props
Server
Build
Server
Entry
Module
Server
Router
Props
Session
Session
Data
Session
Id
Storage
Strategy
Session
Storage
Should
Revalidate
Function
Should
Revalidate
Function
Args
Static
Handler
Static
Handler
Context
Static
Router
Props
Static
Router
Provider
Props
Submit
Function
Submit
Options
UIMatch
UNSAFE_
Assets
Manifest
UNSAFE_
Route
Modules
Blocker
Blocker
Function
Client
Action
Function
Client
Action
Function
Args
Client
Loader
Function
Client
Loader
Function
Args
Cookie
Options
Create
Request
Handler
Function
Data
Route
Object
Error
Response
Fetcher
Fetcher
With
Components
Flash
Session
Data
Form
Enc
Type
Form
Method
Headers
Args
HTMLForm
Method
Html
Link
Descriptor
Hydration
State
Initial
Entry
Is
Cookie
Function
Is
Session
Function
Link
Descriptor
Loader
Function
Meta
Descriptor
Navigation
Navigation
States
Nav
Link
Render
Props
Param
Key
Value
Pair
Param
Parse
Key
Params
Patch
Routes
On
Navigation
Function
Patch
Routes
On
Navigation
Function
Args
Path
Param
Redirect
Function
Relative
Routing
Type
Request
Handler
Revalidation
State
Route
Object
Route
Props
Router
Fetch
Options
Router
Navigate
Options
Scroll
Restoration
Props
SetURLSearch
Params
Submit
Target
To
URLSearch
Params
Init
IDLE_
BLOCKER
IDLE_
FETCHER
IDLE_
NAVIGATION
UNSAFE_
Data
Router
Context
UNSAFE_
Data
Router
State
Context
UNSAFE_
Fetchers
Context
UNSAFE_
Framework
Context
UNSAFE_
Location
Context
UNSAFE_
Navigation
Context
UNSAFE_
Route
Context
UNSAFE_
Single
Fetch
Redirect
Symbol
UNSAFE_
View
Transition
Context
create
Cookie
create
Cookie
Session
Storage
create
Memory
Session
Storage
create
Request
Handler
create
Session
create
Session
Storage
is
Cookie
is
Session
Router
Provider
UNSAFE_
create
Browser
History
UNSAFE_
create
Client
Routes
UNSAFE_
create
Client
Routes
WithHMRRevalidation
Opt
Out
UNSAFE_
create
Router
UNSAFE_
decode
Via
Turbo
Stream
UNSAFE_
deserialize
Errors
UNSAFE_
get
Patch
Routes
On
Navigation
Function
UNSAFE_
get
Single
Fetch
Data
Strategy
UNSAFE_
should
Hydrate
Route
Loader
UNSAFE_
use
FogOFWar
Discovery
UNSAFE_
use
Scroll
Restoration
unstable_
set
Dev
Server
Hooks
设置
成员可见性
受保护的
继承的
外部的
主题
操作系统
浅色
深色
在此页上
安装
React Router API 参考
加载中...