Skip to content
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 #37

Closed
AndyLIUMel opened this issue Feb 12, 2018 · 2 comments
Closed

提问关于react-router #37

AndyLIUMel opened this issue Feb 12, 2018 · 2 comments

Comments

@AndyLIUMel
Copy link

我看官方说不应该直接用react-router, 而是用react-router-dom.
那为什么这个repo用的是 core 呢?

@AndyLIUMel
Copy link
Author

看错了。。。 react router 有没有升级到V4 的想法?

@hq229075284
Copy link
Collaborator

我觉得因为升级router到v4后,路由被当成组件分布在其他组件内部,使得整个路由分散在各个组件中,不直观,所以只升级到v3,仍然保持静态路由的状态,可以使维护者更容易找到路由对应的组件

其次是v4提供的组件化、动态路由和新改进的一些匹配规则,在这里并没有太大的作用

如果仍然有什么疑问的话,欢迎留言, @AndyLIUMel 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants