#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.
На этой странице сайта вы можете посмотреть видео онлайн 💣💥REACT HOOKS TUTORIAL - REACT HOOKS useEffect - REACT HOOKS useState💥💣 длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Professor Hub 30 Январь 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 69 раз и оно понравилось 5 зрителям. Приятного просмотра!