Follow the prompts and choose the defaults, except when asked for which transpiler, choose typescript.

>jspm install react react-dom

... output looks something like this (much longer though):

Now install typescript definition files for these react packages.

>tsd init

>tsd install react react-dom --save

Create an index.html file and add these lines, wordpress will not let me insert html as raw text here so you could copy it from the source files here .

save the file.

Create a folder called 'app' and change into it; create a file called main.tsx, this is the jsx typescript file type. Typescript can transpile jsx expressions and also statically type these. Wow!!! ...insert these lines, get them as text from here:

Create a file called tsconfig.json, this is the file that configures the typescript compiler, enter this json:

This compiles your tsx into javascript (js). You can open a second command shell into the root folder where the index.html is and serve your page by typing

>serve

Open a web browser and go to localhost:3000

In the tsconfig.json you can change the

"target": "es5",

to "es6" and remove the "module": "system" altogether. When transpiled the output will be ES6/ES2015, which you can currently open with most modern browsers. Support for ES2015 syntax varies, not everything is so far supported. For details check this page.

If you find, you want to use another javascript library like, lets say lodash, just run these two commands

>jspm install lodash

>tsd install lodash --save

then in your code use

import * as _ from 'lodash';

As tooling I can suggest atom and the truly beautiful typescript plugin from Basarat Ali Syed. It will give you 'compile on save' and so many more great features. It will also create the tsconfig.json for you.