老师。一个问题

来源:4-10 react-router4 路由 03-和 Redux 配合-复杂 Redux 应用1

慕粉2244186

2018-12-07

为什么我把index的Route放在Dashboard里然后引入了Rounte和LInk 在路由的时候。浏览器报错了。
cant read property ‘pathname’ of undefined

写回答

1回答

慕粉2244186

提问者

2018-12-07

添加一个问题。 you should not use <Rounte component> and <Route children> in the same route;

 <Route children> will be ignored

0
1
慕粉2244186
对不起。这个问题可以不回答了。我找到原因了。
2018-12-07
共1条回复

Redux+React Router+Node.js全栈开发

全网唯一的React 16+Redux+React Router4实战课程,学到手是你的真本领!

1822 学习 · 750 问题

查看课程