#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
Sur cette page du site, vous pouvez voir la vidéo en ligne Ref vs State: One Key Insight to easily remember the differences durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur UI Engineering 26 octobre 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 875 fois et il a aimé 68 téléspectateurs. Bon visionnage!