Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 546 Bytes

README.md

File metadata and controls

32 lines (27 loc) · 546 Bytes

Simple Redux Example

Fetching a post using redux in React. Inspired by blog:使用Redux管理你的React应用

Getting start

npm i -g create-react-app

npm install
npm start

File structure

 src
   |-- index.js
   |-- configureStore.js
   |-- constants
   |  `-- actionTypes.js  
   |-- actions
   |  `-- index.js
   |-- reducers
   |  |-- index.js
   |  `-- post.js
   |-- components
   |  `-- Post.js
   `-- containers
      |-- App.js
      `-- DevTools.js