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

Publicado em: 08 Dezembro 2022
no canal de: 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
***********************************************************


Nesta página do site você pode assistir ao vídeo on-line How to create usePrevious React Custom Hook? | Advanced React.js | JavaScript Interview Question duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Devtools Tech 08 Dezembro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,347 vezes e gostou 48 espectadores. Boa visualização!