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

Veröffentlicht am: 08 Dezember 2022
auf dem Kanal: 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
***********************************************************


Auf dieser Seite können Sie das Online-Video How to create usePrevious React Custom Hook? | Advanced React.js | JavaScript Interview Question mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Devtools Tech 08 Dezember 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,347 Mal angesehen und es wurde von 48 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!