This submodule contains simple Redux Bank application
-
add redux library
-
reducer (state, action, action.type, action.payload)
-
store (createStore, subscribe, dispatch)
-
-
add react-redux library:
-
connect
-
-
add redux-devtools
-
connect many sub-components
-
use combineReducers to group few reducers (implement filtering todoList by it’s done value)
-
use applyMiddleware
let’s install redux-thunk
Terminal
yarn add -ED redux-thunk
store.js
import { createStore } from 'redux';
import combineReducers from './reducers';
export const store = createStore(
combineReducers,
// ...
);