Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 524 Bytes

README.md

File metadata and controls

12 lines (7 loc) · 524 Bytes

React Ref, FordwardRef, UseImperativeHandle

This is a Simple Example Way to use React ref, forwardRef and useImperativeHandle hooks

useImperativeHandle hooks is available on React 18

you can see the web on here

just in case, you're wondering why we can't just put the ref on props and not using forwardRef

here the answer from my frined gpt haha: image