React Hooks | Custom Hooks by Example | ReactJS tutorial

Publié le: 28 avril 2020
sur la chaîne: Codú
1,160
37

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

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

👋Join the Discord
  / discord  

💜 Subscribe for more videos 💜

Follow Niall Maher
💙   / nialljoemaher  
💜   / nialljoemaher  
💙   / nialljoemaher  
💜 https://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


Sur cette page du site, vous pouvez voir la vidéo en ligne React Hooks | Custom Hooks by Example | ReactJS tutorial durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Codú 28 avril 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,160 fois et il a aimé 37 téléspectateurs. Bon visionnage!