Redux Basic Tutorial
Redux is a predictable state container for Javascript app
Redux is for Javascript applications
Redux is a library for Javascript application
Redux can be used with React,Anguar,Vue or Vanila Javascript
Redux can particularly used with React
Managing state in modern web applications can become complex as the app grows, with multiple components sharing and updating the same state. Redux addresses these challenges by:
1.Store:
createStore()
in vanilla Redux or configureStore()
with Redux Toolkit.2.Actions:
type
property and optionally include additional data (payload
).3. Reducers:
4. Dispatch:
5.Middleware:
redux-thunk
, redux-saga
.Redux flow chart