Let's take 10 minutes to understand how useReducer works in React JS and why it may be a better alternative to the "useState" once you try it.
00:21 - The initial state
01:35 - Using the userReducer from scratch
02:16 - Importing userReducer and calling it for the first time
03:10 - About the reducer function
05:00 - What is the dispatcher and calling the dispatcher
05:58 - The dispatcher payload
07:36 - Print the state on the component render function
10:00 - Why useReducer instead of useState?
Learn react interactively and for free at 4Geeks.com
https://4geeks.com/interactive-exerci...
Follow me on twitter:
/ alesanchezr
This video is used as part of the 4Geeks Academy bootcamps:
Full-Stack: https://4geeksacademy.com/us/coding-b...
Data Science: https://4geeksacademy.com/us/coding-b...
Cybersecurity: https://4geeksacademy.com/us/coding-b...
Sur cette page du site, vous pouvez voir la vidéo en ligne How useReducer works in React.JS durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur 4Geeks Academy 14 mai 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 134 fois et il a aimé 4 téléspectateurs. Bon visionnage!