Nerd For Tech
Published in

Nerd For Tech

REDUX FAQs For Beginners

What is Redux?

What are actions?

What are reducers?

Redux Data Flow:

  1. A redux store is created using a root reducer function
  2. The store calls the root reducer and saves the return value into initial state.
  3. UI components asses the current state of the redux store and decide what to render.
  1. Something happens in the app.(a button is clicked)
  2. the app dispatch's an action to the Redux store
  3. The store runs the action and return a copy of the passes state along with any updates as a new state.
  4. The store notifies all the subscribed UI
  5. Each component check to see if there any updates
  6. UI re-renders to reflect any changes.

Conclusion

--

--

NFT is an Educational Media House. Our mission is to bring the invaluable knowledge and experiences of experts from all over the world to the novice. To know more about us, visit https://www.nerdfortech.org/.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store