REACT Advance_Redux
- Create App structure
- src
- actions
- test
- actions.js
- components
- ...js files
- test
- reducers
- test
- reducers.js
- index.js
- Root
- actions
- src
-
add .env
-
add prettier
-
Setup and create tests for root components and child components using enzyme for React v16
-
Managing with global store, wrap into provider index.js
-
Create Root and put inside index.js children prop (for testing) to render all components
- createStore
- create initial state
- applyMiddleware
-
axios fetch data from JSONPlaceholder fake data in actions and parsing in comments reducer
-
reduxPromise, applyMiddleware
-
use moxios to make fake request moc axios for pass tests