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

Pubblicato il: 08 dicembre 2022
sul canale di: 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
***********************************************************


In questa pagina del sito puoi guardare il video online How to create usePrevious React Custom Hook? | Advanced React.js | JavaScript Interview Question della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Devtools Tech 08 dicembre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,347 volte e gli è piaciuto 48 spettatori. Buona visione!