I wrote an article all about refs in React. We'll cover string refs (not to use them but just to understand them), callback refs, and the new React.createRef(). There is an accompanying article available here: https://www.leighhalliday.com/using-refs-in-react