跳到正文
lilonghe↗

Living without an aim is like sailing without a compass

首页 归档 创意 关于

已运行 3922 天

© lilonghe

Technology

React-Router-4 + MobX

2017.05.10 · 阅读时间

Route 配置所在组件导出方式

export default withRouter(observer(Component));

[参考资料]
https://themeteorchef.com/tutorials/getting-started-with-react-router-v4
https://github.com/ReactTraining/react-router/issues/4781

· · ·

本文链接 https://note.lilonghe.net/post/react-router-4-mobx.html

署名-非商业性使用-禁止演绎 (CC BY-NC-ND 4.0)

Copyright © lilonghe

回到顶部 ↑