How useReducer works in React.JS

Publicado el: 14 mayo 2024
en el canal de: 4Geeks Academy
134
4

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...


En esta página del sitio puede ver el video en línea How useReducer works in React.JS de Duración hora minuto segunda en buena calidad , que subió el usuario 4Geeks Academy 14 mayo 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 134 veces y le gustó 4 a los espectadores. Disfruta viendo!