#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.
Auf dieser Seite können Sie das Online-Video 💣💥REACT HOOKS TUTORIAL - REACT HOOKS useEffect - REACT HOOKS useState💥💣 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Professor Hub 30 Januar 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 69 Mal angesehen und es wurde von 5 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!