arrow_backBACK TO DRILLS
Blue Beltuseref
useImperativeHandle DOM Property Access
A component uses useImperativeHandle to expose only { focus, scrollIntoView } through a ref instead of exposing the underlying <input> DOM node. What happens if a parent tries to access ref.current.style.opacity?