react redux workflow diagram code example
Example: redux workflow
First we go to the component
Set up all inputs
Dispatch something (some action) and pass in what parameters you need
Then go to actions
Action will make call to API
API
Makes some crud request (eg. post) and recieves something in return, which is then destructured in our action
Back in actions
Dispatch, passing in type and data we want to send to the reducer