React Hooks | Custom Hooks by Example | ReactJS tutorial

Publicado em: 28 Abril 2020
no canal de: 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


Nesta página do site você pode assistir ao vídeo on-line React Hooks | Custom Hooks by Example | ReactJS tutorial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Codú 28 Abril 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,160 vezes e gostou 37 espectadores. Boa visualização!