采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
export ‘default’ (imported as ‘createStore’) was not found in ‘redux’ (possible exports: __DO_NOT_USE__ActionTypes, applyMiddleware, bindActionCreators, combineReducers, compose, createStore, legacy_createStore) 为啥引用createStore会报错
确实应该是 createStore 方法错了,看下官方文档
代码就是跟着老师敲的,redux是4.2.0版本的
import * as createStore from 'redux'; 换成这个就可以了
登录后可查看更多问答,登录/注册
主流新技术 React-redux,React-router4,贯穿基础语法
6.1k 22
6.2k 20
2.4k 19
5.0k 17
1.8k 13
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号