第五章,点击标题没有跳转到详细页
hengg opened this issue · comments
王亮 commented
components/Home/Preview.js line15
this.props.push(/detail/${id}
);
xt.n commented
我也是遇到这个问题,自己仿照书写了另外一个小例子也有这个问题(https://github.com/aircloud/react-redux-router-demo)
目前已经找到bug,是因为在开发环境下的:configureStore.dev.js 这个文件并没有引入"routerMiddleware"这个中间件,仿照configureStore.prod.js这个文件把它引入,就没有问题了