In a React project that uses rxjs, I need to get a reference to an HTML element. I am using React.createRef:
const buttonWait = React.createRef();
<button ref={buttonWait}> Wait </button>
But { current: null } is printed to the console. How to get a link to an element to add to fromEvent and subscribe?