Use TypeScript With React

Are you a TypeScript guy? Want to use TypeScript in a React project? Microsoft’s TypeScript React Starter project allows you to use your TypeScript skills in a React project.

The TypeScript React Starter is an open source project on Github that you how to wire up TypeScript with React. The tutorial covers the following:

Install create-react app

npm install -g create-react-app

Create a project with React and TypeScript

create-react-app my-app --scripts-version=react-scripts-ts

Linting with TSLint

Running and testing with Jest and Enzyme, and state management with Redux

npm run start

Testing the project

npm run test

Creating a production build

npm run build

Adding styles and more

Get started here:

https://github.com/Microsoft/TypeScript-React-Starter