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

reactv15x,react-router v3.x 的老项目 升级 ,那么 路由 的 onEnter 怎么处理? #107

Open
JoMartinezZhu opened this issue May 14, 2019 · 1 comment

Comments

@JoMartinezZhu
Copy link

No description provided.

@llh911001
Copy link
Member

llh911001 commented May 14, 2019

Mirror 基于 react-router v4 及以上。v3 的 on* 事件需要通过 Route 组件的 lifecycle 方法来处理,参考 https://github.com/ReactTraining/react-router/blob/master/packages/react-router/docs/guides/migrating.md#on-properties

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