React - exporting function that uses useRef() | Ernesto Laval | ObservableReact - exporting function that uses useRef() | Ernesto Laval | Observable