Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
 
PREVIOUS NEXT
Tagged: #redux #workflow
ADD COMMENT
Topic
Name
3+8 =