TypeScript 1.6 Beta Is Announced With React/JSX Support

Microsoft just announced the beta version of TypeScript 1.6, an object based scripting language developed by Microsoft.

TypeScript originally developed and maintained by Microsoft is a typed superset of JavaScript that let you write object-oriented code that compiles to plain JavaScript. TypeScript is open source and supports all browsers and operating systems.

Jonathan Turner wrote in his blog post:

Today, we’re making a beta of the upcoming TypeScript 1.6 available. There are a bunch of new features coming in the 1.6 release, and we wanted to give you a preview of these features and time to give us feedback.

React/JSX support

One of the key philosophies of TypeScript is to let you write TypeScript anywhere you can develop using JavaScript. While we’ve worked with teams such as Dojo, Aurelia, and Angular to ensure using TypeScript is as easy as using JavaScript, there was still an important library that that presented a difficulty for TypeScript developers: React. This was due to the lack of support for JSX, a popular way of writing DOM and native components in JS. React heavily leverages JSX in everyday code. Unfortunately, the syntax for JSX conflicted with the cast syntax that TypeScript already used.

Catching more errors

Starting with 1.6, we’re tightening up some of our object checking rules. In the beta, you’ll see that objects need to match more closely when they are assigned.

Improved module resolution

Previously, TypeScript used a hybrid approach for resolving both CommonJS and RequireJS. Unfortunately, this meant that module resolution didn’t feel at home in either style, and instead made you structure projects in a way that didn’t feel natural for that particular module loader.

Learn TypeScript

C# Corner hosts hundreds of articles on TypeScript. Check them out: Learn TypeScript on C# Corner

TypeScript website: http://www.typescriptlang.org/