React Tutorial - 30.useRef && useImperativeHandle

Publié le: 17 octobre 2021
sur la chaîne: feeco
22
0

1.useRef -- is a way to create ref in function component
a.store element node and focus
b.store a component instance

2.useRef is used to store special value which could cross lifey cycle

3.useImperativeHandle
a.forwardRef() -- is a higher order component used when parent component want to control elements in the child component
b.useImperativeHandle limit the control of parent component , limit what parent component can do upon child component


Sur cette page du site, vous pouvez voir la vidéo en ligne React Tutorial - 30.useRef && useImperativeHandle durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur feeco 17 octobre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 22 fois et il a aimé 0 téléspectateurs. Bon visionnage!