React's useRef Hook: How is it different to useState?

Опубликовано: 23 Октябрь 2024
на канале: Max Rohowsky (Max on Tech)
446
17

useRef is a React Hook that provides a way to persistently store and access mutable values across renders without causing re-renders.

⌚ Timestamps ⌚
00:00 | What is useRef?
00:55 | useRef Syntax
02:10 | Comparing useRef and useState

◾◾◾◾◾ Let's Connect! ◾◾◾◾◾
🐦 Twitter (X): 🔗   / @maxrohowsky  
📂 GitHub: 🔗 https://github.com/MaxRohowsky
💼 LinkedIn: 🔗   / maxrohowsky  
🔊 Discord: 🔗   / discord  
✅ Blog: 🔗 https://max.rohowsky.net

◾◾◾◾◾ ⭐️Hashtags ⭐️◾◾◾◾◾
#react #useRef #reacthooks