React Hooks | Custom Hooks by Example | ReactJS tutorial

Veröffentlicht am: 28 April 2020
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video React Hooks | Custom Hooks by Example | ReactJS tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Codú 28 April 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,160 Mal angesehen und es wurde von 37 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!