News for hackers. Stuff that matters.
Re:Announcing TypeScript 1.6 by msoad on Wednesday September 16, 2015 @04:46PM (#10229744)
So JSX is not enabled by default, right?
Re:Announcing TypeScript 1.6 by WorldMaker on Wednesday September 16, 2015 @04:51PM (#10229772)
You have to use the .TSX filename extension to enable it.
Re:Announcing TypeScript 1.6 by evmar on Wednesday September 16, 2015 @05:16PM (#10229943)
I was just playing with this today. I didn't realize it was so new! I filed a bug about the extension with the related emacs mode and it's already fixed: https://github.com/fxbois/web-mode/issues/585
Re:Announcing TypeScript 1.6 by jnetterf on Wednesday September 16, 2015 @05:42PM (#10230102)
You also need to set {"jsx": "react"} (for valid JS output) or {"jsx": "preserve"} (for JSX output) in your tsconfig.json / cli options.