Ref vs State: One Key Insight to easily remember the differences

Publicado em: 26 Outubro 2023
no canal de: UI Engineering
875
68

#reactjs
Ref and State have something in common. Understanding that is the key to easily remember differences between them ;)

Inspiration from React docs: https://react.dev/learn/referencing-v...

⏱️Timestamps:
00:00 - Introduction
00:40 - State vs Local Variable
01:25 - Ref and State - Common Part
01:51 - useCustomRef implementation
02:19 - Comparing useRef vs useCustomRef
02:38 - Visualization of differences between Ref and State
03:26 - #1 Rule of using Refs
03:49 - #2 Rule of using Refs
05:14 - One sentence summary


Nesta página do site você pode assistir ao vídeo on-line Ref vs State: One Key Insight to easily remember the differences duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário UI Engineering 26 Outubro 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 875 vezes e gostou 68 espectadores. Boa visualização!