Refs are best for imperative behaviors that cannot be expressed well with props, such as focusing, scrolling, or measuring.