Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver2
37いいね 1175回再生

React Hooks | Custom Hooks by Example | ReactJS tutorial

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:
codesandbox.io/s/react-hooks-series-cyqe0

📚The official React docs on custom hooks:
reactjs.org/docs/hooks-custom.html

👋Join the Discord
discord.gg/FvunZdr

💜 Subscribe for more videos 💜

Follow Niall Maher
💙 twitter.com/nialljoemaher
💜 www.linkedin.com/in/nialljoemaher/
💙 www.instagram.com/nialljoemaher/
💜 dev.to/nialljoemaher

Codú is a software development company in Dublin Ireland. To work with us reach out via our website here: www.codu.ie

#programming #reactjs

コメント