Skip to Content

setRef

See source on Github

Useful if you want to expose the ref of an inner component to the public API while still using it inside the component.

  • @param ref - A ref callback or ref object. If anything falsy, this is a no-op.