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...
Auf dieser Seite können Sie das Online-Video How useReducer works in React.JS mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer 4Geeks Academy 14 Mai 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 134 Mal angesehen und es wurde von 4 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!