本项目为react-redux的一个demo,具体是去理解reducer store action是怎么处理数据的
- git clone https://github.com/liziwangrui/react-redux-demo.git
- npm i
- cp src/config.example.js src/config.js
- webpack (包含watch js和scss功能)
- gulp
- gulp watch(监听scss-lint和其他文件copy)
- npm run start 启动项目
- sudo vim /etc/hosts 修改hosts文件,添加danci.smartstudy.com
- npm run watch(启动同步刷新)
- 浏览器访问danci.smartstudy.com:3000/11
git remote set-url origin https://github.com/liziwangrui/react-redux-demo.git