Redux in JS411

Will McClure
Apr 12, 2021

What are “actions” in Redux? What is the role of reducers in Redux?

An action, is an object that contains the payload of information. They are the only source of information for the Redux store to be updated. Reducers update store based on the value of the action.type. https://www.smashingmagazine.com/2020/12/how-redux-reducers-work/

What is the meaning of “single source of truth” in Redux?

The global state of the application is handled within a single store which allows for the easy creation of universal apps, because the data can be transferred easily without lots of extra code needed.

--

--