React Hooks | Custom Hooks by Example | ReactJS tutorial

preview_player
Показать описание
Learn React Hooks! Build custom Hooks to avoid duplicated code. 💜

In this video, we will look at the creating custom hooks so you understand how to use it in your code today. We will refactor a simple modal so that we can reuse the logic of handling outside clicks anywhere.

Custom hooks are everywhere in ReactJS so by learning the pattern you can be a much more efficient developer.

We will show you how to create custom hooks by refactoring a small app. 🎉

What have you been using your ReactJS hooks to do?

🔗 Link to code:

📚The official React docs on custom hooks:

👋Join the Discord

💜 Subscribe for more videos 💜

Follow Niall Maher

#programming #reactjs
Рекомендации по теме
Комментарии
Автор

"A custom hooks returns LOGIC instead of JSX". I needed this PERFECT sentence of his in my last interview. Never again :)

arhabersham