React Hooks | Custom Hooks by Example | ReactJS tutorial

Published: 28 April 2020
on channel: 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


On this page of the site you can watch the video online React Hooks | Custom Hooks by Example | ReactJS tutorial with a duration of hours minute second in good quality, which was uploaded by the user Codú 28 April 2020, share the link with friends and acquaintances, this video has already been watched 1,160 times on youtube and it was liked by 37 viewers. Enjoy your viewing!