#REACT #HOOKS
IN THIS VIDEO WE ARE GONNA TALK ABOUT REACT HOOKS.
React doesn’t offer a way to “attach” reusable behavior to a component (for example, connecting it to a store). If you’ve worked with React for a while, you may be familiar with patterns like render props and higher-order components that try to solve this. But these patterns require you to restructure your components when you use them, which can be cumbersome and make code harder to follow. If you look at a typical React application in React DevTools, you will likely find a “wrapper hell” of components surrounded by layers of providers, consumers, higher-order components, render props, and other abstractions. While we could filter them out in DevTools, this points to a deeper underlying problem: React needs a better primitive for sharing stateful logic.
With Hooks, you can extract stateful logic from a component so it can be tested independently and reused. Hooks allow you to reuse stateful logic without changing your component hierarchy. This makes it easy to share Hooks among many components or with the community.
FOLLOW OUR INSTAGRAM PAGE:
@PROFESSORHUB_
THANKS.
En esta página del sitio puede ver el video en línea 💣💥REACT HOOKS TUTORIAL - REACT HOOKS useEffect - REACT HOOKS useState💥💣 de Duración hora minuto segunda en buena calidad , que subió el usuario Professor Hub 30 enero 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 69 veces y le gustó 5 a los espectadores. Disfruta viendo!