Callback Refs

Learn how you can get more precise control over when refs are set and unset.

What are Callback Refs?

A more flexible alternative to string refs is the callback refs. While being more flexible, their handling is slightly more cumbersome and must be managed explicitly. By using callback refs, it is possible to pass refs to a component’s child components ...