react-nativereduxreact-reduxredux-thunkredux-actions

What is a difference between action,reducer and store in redux?


I am new to react/redux. I am trying to figure out how all the pieces in redux interact. The one thing giving me trouble is understanding the relation between actions and reducers,store.


Solution

  • It's pretty simple when you think about it:

    Reducer is usually in the format of a switch statement that switches between all possible Actions (cases) and then manipulates the Store data based on the action. When reducer data changes within redux, the properties in your components are changed and then the re-rendering occurs.