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...
On this page of the site you can watch the video online How useReducer works in React.JS with a duration of hours minute second in good quality, which was uploaded by the user 4Geeks Academy 14 May 2024, share the link with friends and acquaintances, this video has already been watched 134 times on youtube and it was liked by 4 viewers. Enjoy your viewing!