How do i pass ref to child?

<div ref="how can i access this ref in ChildComponent?">
<ChildComponent/>
</div>
<div ref="how can i access this ref in ChildComponent?">
<ChildComponent/>
</div>
1 Reply
thetarnav
thetarnav2y ago
use a signal to store the ref, and pass that signal to the child. then you can react to it's changes with an effect