The docs for useImperitiveHandle state
useImperativeHandle customizes the instance value that is exposed to parent components when using ref. As always, imperative code using refs should be avoided in most cases. useImperativeHandle should be used with forwardRef
I'm wondering why imperative code using refs should be avoided, perhaps this is something that could be added to the docs?
The docs for useImperitiveHandle state
I'm wondering why imperative code using refs should be avoided, perhaps this is something that could be added to the docs?