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
***********************************************************
On this page of the site you can watch the video online How to create usePrevious React Custom Hook? | Advanced React.js | JavaScript Interview Question with a duration of hours minute second in good quality, which was uploaded by the user Devtools Tech 08 December 2022, share the link with friends and acquaintances, this video has already been watched 1,347 times on youtube and it was liked by 48 viewers. Enjoy your viewing!