# React-Redux Primary Demo **Repository Path**: yinluhui/React-Redux-Primary-Demo ## Basic Information - **Project Name**: React-Redux Primary Demo - **Description**: 之前学习了React,它是处理UI的,如果涉及到业务比较复杂的时候,需要用到Redux来处理业务。两者配合,Redux处理逻辑+React渲染UI。这个项目是入门级的demo。 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2017-02-15 - **Last Updated**: 2021-10-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #运行说明 直接在浏览器中打开index.html和index2.html即可。 #如果修改的js,需要重新编译redux,方法如下: 1. 在当前目录下执行:
`npm install` 2. 然后执行:
`npm run build:编译index.html`
`npm run watch:监控index.js、components/Counter.js、reducers/index.js三个js的修改,并实时编译`
`npm run build2:编译index2.html`
`npm run watch2:监控index2.js的修改,并实时编译`
#在线演示 [Redux实例演示](http://yinluhui.oschina.io/react-redux-primary-demo/webapp/view/index.html "index.html演示")
[React-Redux实例演示](http://yinluhui.oschina.io/react-redux-primary-demo/webapp/view/index2.html "index2.html演示") #资料参考 [Redux 入门教程](http://www.ruanyifeng.com/blog/2016/09/redux_tutorial_part_one_basic_usages.html "Redux 入门教程")
[react-redux 官方文档](http://www.redux.org.cn/docs/react-redux/quick-start.html "react-redux 官方文档")