setRef
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. - @param
value- Value assigned to the ref.