#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.
In questa pagina del sito puoi guardare il video online 💣💥REACT HOOKS TUTORIAL - REACT HOOKS useEffect - REACT HOOKS useState💥💣 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Professor Hub 30 gennaio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 69 volte e gli è piaciuto 5 spettatori. Buona visione!