JSX element type 'CounterDisplay' is not a constructor function for JSX elements. Types of property 'refs' are incompatible
问题 I updated to typescript to version 2.1.6 from version 1.6 and the typings for react to version 15.0.15. If I compile the typescript files via gulp or tsc everything is working fine and there are no error messages. However Visual Studio 2017 RC as well as Sublime Text complain about the typescript code. Here is some of my code. This does not produce any errors. interface CounterDisplayProps { loading: boolean; first: number; last: number; total: number; } class CounterDisplay extends React