In TSX file : Property 'createRef' does not exist on type 'typeof React'
Looks like you have an out of date version of @types/react
. The latest version 16.3.14
has type definitions for createRef
.
In my Typescript codebase I had to update react-dom types:
yarn upgrade @types/react-dom^16.3.0