React Hooks | Custom Hooks by Example | ReactJS tutorial

Pubblicato il: 28 aprile 2020
sul canale di: 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


In questa pagina del sito puoi guardare il video online React Hooks | Custom Hooks by Example | ReactJS tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Codú 28 aprile 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,160 volte e gli è piaciuto 37 spettatori. Buona visione!