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...
Nesta página do site você pode assistir ao vídeo on-line How useReducer works in React.JS duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário 4Geeks Academy 14 Maio 2024, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 134 vezes e gostou 4 espectadores. Boa visualização!