Typescript for Facebook React

React jsx will be available in upcomming TypeScript 1.6. Here's more info.


François de Campredon created a type definition for React: https://github.com/fdecampredon/react-observe-todomvc/blob/typescript/src/declarations/react.d.ts

It does not support JSX obviously, since it is another language with a syntax different from TypeScript.


The React team is currently discussing making Typescript annotations an internally used thing. This may be changing on the official for you, soon.


Update: old answer is no longer true. Typescript for some time supports separate syntax context with .tsx files, where it drops <> casting syntax in favor of JSX.


It won't. There is a lot of ambiguity between TypeScript type casting syntax:

(<foo>bar)

And JSX inline XML syntax:

(<foo>bar)</foo>)