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", }, }.
Semantic portal