navigate
2022-04-27 16:42:23 10 举报
AI智能生成
navigation
作者其他创作
大纲/内容
useNavigate
function1
to
options
replace
state
function2
number, 负数返回几个页面, 正数前进几个页面
Navigate
to
replace
state
NavLink
propos
to
replace
className
<string>, 如path
(isActive) => string | undefined
children
React.ReactNode
(isactive) => React.ReactNode | undefined
style
React.CSSProperties
(isActive) => React.CSSProperties | undefined
reloadDocument
<bool> 是否重新刷新
Link
props
to
<string>, 如path
<object>
pathname
search
hash
replace
<bool>, true 则在点击后会在history stack 替换当前历史记录条目, 而不是在原来的基础上添加
state
<any> 可以传参
0 条评论
下一页