Hello!
I have found a variety of resources on the web describing ways to forward multiple refs to a child component so they can be accessed by a parent component:
Would it be possible to add a section to the official docs which describes what is going on in these examples? I think that these examples use the behavior of useRef as described in the useRef docs, but I'm honestly not sure. I think an official example of this would be very helpful.
Thanks!
Hello!
I have found a variety of resources on the web describing ways to forward multiple refs to a child component so they can be accessed by a parent component:
Would it be possible to add a section to the official docs which describes what is going on in these examples? I think that these examples use the behavior of
useRefas described in theuseRefdocs, but I'm honestly not sure. I think an official example of this would be very helpful.Thanks!