React Hooks and Functional Components

Опубликовано: 18 Март 2026
на канале: Restful Coder
1,016
16

Learn how to convert class based React components to functional components using hooks. I'll convert all the components in the Star Wars API browser to functional components, and switch to using useState for state, and useEffect for side effects.

❤️ Support the channel!
----------------------------------------------
🛒 Shop Amazon with our link*: https://amzn.to/2WMs6U5
📚 Receive exclusive updates: https://bit.ly/36p6XT7
I make a commission when you use this link. It doesn't cost you anything. Win-win!

🔍 Find me online
----------------------------------------------
🐦 Twitter:   / draffauf  
🐙 Github: https://github.com/draffauf

📓 Resources
----------------------------------------------
Code: https://github.com/draffauf/react-red...
Workaround for using Enzyme shallow rendering with hooks: https://blog.carbonfive.com/2019/08/0...