Reading the Docs about React.createRef() and seeing this straight forward React (>= react@16.3) version way to do this:
React.createRef()
From the docs example: