arcthur / react-book-examples

深入 React 技术栈一书中示例

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

第五章,点击标题没有跳转到详细页

hengg opened this issue · comments

components/Home/Preview.js line15
this.props.push(/detail/${id});

commented

我也是遇到这个问题,自己仿照书写了另外一个小例子也有这个问题(https://github.com/aircloud/react-redux-router-demo)

目前已经找到bug,是因为在开发环境下的:configureStore.dev.js 这个文件并没有引入"routerMiddleware"这个中间件,仿照configureStore.prod.js这个文件把它引入,就没有问题了