In this react tutorial, we'll learn how to use useRef properly and its use-cases, and why we should use useRef instead of useState.
We'll learn how to implement useRef in our React code, how to create a refs, how to use it to access DOM elements, and how to update values without triggering re-renders. We'll also look at best practices when using useRef.
#react #useRef #hooks
---------------------------------------------------------------
blog: https://www.elpeeda.net/
blog post - https://bit.ly/41ZJ3Ke
-----------------------------------------------------------------
Timestamps -
00:00 - intro
0:38 - What is useRef?
1:21 - Basics of Refs
2:53 - Modify DOM node elements
5:52 - Referencing values
10:23 - Difference between useRef and useState
11:13 - useRef tips and best practices
12:5 - outro
------------------------------------------------------------------------
Follow me on social media
twitter: / mahvish_7
Pinterest: / _created
Instagram: / elpeedanet
I'd appreciate it if you would subscribe and click the bell button.
Tags:
ReactJS Tutorial
ReactJS Tutorial for Beginners
useRef hook in react js
refs
На этой странице сайта вы можете посмотреть видео онлайн useRef Hook: Secret Recipe of DOM Manipulation - part 18 длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Elpeeda 13 March 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 142 раз и оно понравилось 7 зрителям. Приятного просмотра!