-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
升级 react-router 到 v5 #7
Comments
Diablohu
added
idea
Just an idea
question
Further information is requested
enhancement
New feature or request
and removed
idea
Just an idea
labels
Dec 1, 2018
Closed
新的思路 & 想法
|
Diablohu
added
overhaul
and removed
enhancement
New feature or request
question
Further information is requested
labels
Apr 8, 2019
解析 默认异步 |
关于异步路由
关于
|
选项: 默认值: 可能的值
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
目前结论:暂不升级
原因:服务端渲染部分的周边工具尚不完善,包括官方提供的部分 API 仍在 alpha 阶段。
需要等待完善的框架/组件/库:
ConnectedRouter
产生的组件属性不完善升级注意事项
react-router-config
的match()
方法与 v3 同名的方法有较大差异。在升级时需要自己拼装renderProps
返回值。需提前准备与 v3 兼容的数据结构getComponent
) 已被废弃,需要自行编写异步组件React/asyncCompnent
为一个可行的组件ReactApp
根目录下的文件多为仅服务器端使用参考文章
koot-migrate
路由配置文件
indexRoute
{ path: '/', exact: true }
childRoutes
->routes
getComonent
修改为import
方式警报
Link
的引用The text was updated successfully, but these errors were encountered: