TypeScript with React: Adding TypeScript to a Project

Adding TypeScript to a Project

To install the latest version of TypeScript into your project run from the terminal: 'yarn add --dev typescript' for yarn or 'npm install --save-dev typescript' for npm.

Add tsc to the “scripts” section in our package.json: { "scripts": { "build": "tsc", }, }.

Related concepts

Adding TypeScript to a Project

TypeScript with React: Adding TypeScript to a Project — Structure map

Clickable & Draggable!

TypeScript with React: Adding TypeScript to a Project — Related pages: