1npx create-react-app app-name --template typescript
2# or using yarn
3yarn create react-app app-name --template typescript
1npx create-react-app my-app --template typescript
2
3# or
4yarn create react-app my-app --template typescript
1// to create a simple app with React and Typescript
2npx create-react-app yourProjectName --template typescript
3
4// to add Typescript in an existing project
5npm install --save typescript @types/node @types/react @types/react-dom @types/jest
1npm install --save typescript @types/node @types/react @types/react-dom @types/jest