redux

Redux-Saga example

*redux-saga notes for me myself and i Redux-saga are for asynchronous actions with side-effects install npm i redux-saga root.reducer.js import { combineReducers } from 'redux'; import { persistReducer } from 'redux-persist'; import userRe…

Redux Practice Example

Installing Redux npm i redux redux-logger react-redux Creating store store.js import { createStore, applyMiddleware } from 'redux'; import logger from 'redux-logger'; import rootReducer from './root-reducer.js'; const middleWares = [logger…

Redux Notes

*redux notes Redux Redux Introduction ・state management ・get rid of all states in components ・put them in a store and pass the state to the component that needs it Why Redux ・Good for managing large state ・Useful for sharing data betw…