useRef Hook - React In Depth
Автор: Tech with Nader
Загружено: 2023-08-19
Просмотров: 1747
Описание:
Let's learn about the useRef hook together in React.
We start with an overview of the syntax as well as a code example where we see how we can store a reference independent of the rendering state.
Then, we look at how useRef can be used as a DOM node reference with the ref attribute.
We wrap up the video with a quick comparison of useState vs useRef and when to use each.
Chapters:
00:00 Introduction
00:43 useRef Overview
02:16 useRef Syntax
04:11 useRef Code Example
13:50 DOM Node references
15:47 DOM Ref Code Example
21:00 useState vs useRef
23:04 Next Steps
📦 Github Repository with the notes and exercise code+solutions: https://github.com/Nooder/react-in-depth
💬 Come join us on Discord to chat with a like-minded community about tech and learning: / discord
🏅Support the channel and content through Super Thanks, Channel Memberships, or on Patreon: / techwithnader
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: