How to create usePrevious React Custom Hook? | Advanced React.js | JavaScript Interview Question

Publié le: 08 décembre 2022
sur la chaîne: Devtools Tech
1,347
48

In this video we are going to discuss and build a custom React hook called usePrevious. We are going to briefly discuss questions like what are custom hooks? How they are used? What is the need of React Custom Hooks? We are also going to code along and implement usePrevious custom hook.

Do check out the video and share your feedback! :D

00:00 Introduction
00:51 What are the React Custom Hooks?
02:58 Starting with usePrevious Hook
03:58 What we need to implement?
06:35 Using useState to implement usePrevious
08:19 Why useState is not ideal for our useCase?
09:27 Using useRef to implement useRef
11:13 Outro

You can support our channel via:

https://rzp.io/l/support-devtools-tech
https://devtoolstech.gumroad.com/l/su...
https://www.buymeacoffee.com/yomeshgupta

************************************************************
Devtools Tech is a YouTube channel started as a collaborative effort among like-minded engineers to provide high-quality programming tutorials for free. We firmly believe in knowledge sharing and easy access to quality content for everyone. Hence, this channel is an effort to give back to the community and a step toward our belief -- "We rise by lifting others".

Interview questions: https://devtools.tech/questions/all?r...
Interview resources: https://devtools.tech/resources/all?r...
Hidden Gem: https://devtools.tech/crazyones

Team Members:
Yomesh Gupta
Portfolio: https://yomeshgupta.com
LinkedIn:   / yomeshgupta  
Twitter:   / yomeshgupta  

#reactjs #javascript #web #frontend #interview #interviewquestions #devtoolstech #code #programming #developement #hooks #reacthooks
***********************************************************


Sur cette page du site, vous pouvez voir la vidéo en ligne How to create usePrevious React Custom Hook? | Advanced React.js | JavaScript Interview Question durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Devtools Tech 08 décembre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,347 fois et il a aimé 48 téléspectateurs. Bon visionnage!