You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is written in typescript but you can use the compiled javascript files.
JSX will be supported in typescript 1.6 which is not released yet. The best way to try it out is to use the nightly builds as documented in the ts readme.
I configured my Visual Studio project to use typescript + jsx (tsx files). VS compiles those tsx files into js on save, and I use those js files as input for reactjs.net. Works great and now VS 2013 understands the html tags inside the javacript (which don't work in jsx files, but they do in tsx files).
Closing this out since I think TypeScript is outside the scope of ReactJS.NET at the moment, and I won't get enough time to implement it. Personally I use Flow, and Flow types are already supported by Babel.
Unless someone wants to submit a pull request to add support! I'm always happy to accept pull requests :)
This issue is really old but it’s always been possible to use webpack to build typescript files. With Babel 7 support it could probably support typescript types directly.
Typescript supports JSX via
--jsx reactflag for.tsxextensions. It is currently merged in master branch but will be released in 1.6.microsoft/TypeScript#3564