// the 2nd line needs ASI protection const el = ReactDOM.findDOMNode(ref) ;(el as HTMLElement)!.style.cursor = 'pointer'