本页还没有译文
本页 18 段还没译成한국어,下面显示的是英文原文。Navigate
还没翻译译自英文(reactrouter.com)本页 18 段都还没译
Navigate
Framework Data Declarative
Summary
A component-based version of useNavigate to use in a
React.Component class where
hooks cannot be used.
It's recommended to avoid using this component in favor of useNavigate.
<Navigate to="/tasks" />Signature
function Navigate({ to, replace, state, relative }: NavigateProps): nullProps
relative
How to interpret relative routing in the to prop.
See RelativeRoutingType.
replace
Whether to replace the current entry in the History
stack
state
State to pass to the new Location to store in history.state.
to
The path to navigate to. This can be a string or a Path object
AI 翻译查看英文原文