When casting in a .tsx file, the compiler assumes it to be JSX, e.g.:
(<HtmlInputElement> event.target).value
gives an error
JSX element type 'HtmlInputElement' is not a constructor function for JSX elements
How do you cast TypeScript in a .tsx file?
asis the recommended syntax for type assertions. I mention this here as well basarat.gitbooks.io/typescript/content/docs/types/… 🌹