npm install --save react
$ typings install react --save
typings ERR! message Unable to find "react" ("npm") in the registry. Did you want to try searching another source? Also, if you want contribute these typings, please help us: https://github.com/typings/registry
typings ERR! caused by https://api.typings.org/entries/npm/react/versions/latest responded with 404, expected it to equal 200
typings search react
NAME SOURCE HOMEPAGE DESCRIPTION VERSIONS UPDATED
react dt http://facebook.github.io/react/ 2 2016-05-26T13:46:01.000Z
$ typings i dt~react --save
typings ERR! message Attempted to compile "react" as an external module, but it looks like a global module.
typings install dt~react --save --global
Cannot find module 'react'
import React from 'react'
The React lib doesn't have a default export. So when you ask it to
import React, it looks for a default export in that library. Unfortunately, it doesn't exist. Instead, import the whole contents and namespace in this way:
import * as React from 'react';