Work with a partner to add comments describing the functionality of the code found in reducers.js.
What is the purpose of the action argument that gets passed to the reducer function?
How can we account for multiple types of actions inside the reducer?
Refer to the documentation:
React documentation on useReducer
How do we make sure that the database is seeded?
Which npm
package allows us to run both the front end and the back end at the same time? How do you start it?
If you have completed this activity, work through the following challenge with your partner to further your knowledge:
- Why do we create variable names for each action type in
actions.js
?
Use Google or another search engine to research this.
© 2023 edX Boot Camps LLC. Confidential and Proprietary. All Rights Reserved.