react-router v5升级v6 api差异化对比
官方文档地址【https://github.com/remix-run/react-router/blob/main/docs/upgrading/v5.md】
1. <Redirect> ------> <Navigate>
2. useRouteMatch ------>useMatch
3.useHistory ------>useNavigate
let navigate = useNavigate();
navigate(to, { re...
原创
2022-03-16 16:03:26 ·
406 阅读 ·
0 评论