The Redux data flow

After connecting your Redux code with the React components, you will find that Redux follows the same one-way data flow as React. This is the data flow of Redux:

This is how data flow happens in a React component:

Also, both the state in a React component and the state in a Redux store should be immutable. This immutability is essential for React and Redux to work properly. However, since JavaScript does not strictly implement any immutable data types at the moment, we need to be careful not to mutate the states. In React ...

Get JavaScript by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.