I\'m using Typescript with React. I\'m having trouble understanding how to use refs so as to get static typing and intellisense with respect to the react nodes referenced by
For typescript user no constructor required.
...
private divRef: HTMLDivElement | null = null getDivRef = (ref: HTMLDivElement | null): void => { this.divRef = ref } render() { return }