Technology
React-Router-4 + MobX
Route 配置所在组件导出方式
export default withRouter(observer(Component));
[参考资料]
https://themeteorchef.com/tutorials/getting-started-with-react-router-v4
https://github.com/ReactTraining/react-router/issues/4781
Technology
Route 配置所在组件导出方式
export default withRouter(observer(Component));
[参考资料]
https://themeteorchef.com/tutorials/getting-started-with-react-router-v4
https://github.com/ReactTraining/react-router/issues/4781