npx create-react-app app-name --template typescript
# or using yarn
yarn create react-app app-name --template typescript
npx create-react-app my-app --template typescript
# or
yarn create react-app my-app --template typescript
// to create a simple app with React and Typescript
npx create-react-app yourProjectName --template typescript
// to add Typescript in an existing project
npm install --save typescript @types/node @types/react @types/react-dom @types/jest
npm install --save typescript @types/node @types/react @types/react-dom @types/jest
# or
yarn add typescript @types/node @types/react @types/react-dom @types/jest
npx create-react-app my-app --template typescript
/*if done correctly, many of your files should now have extension .tsx instead*/
npx create-react-app app-name --template typescript
// or using yarn
yarn create react-app app-name --template typescript
yarn create react-app my-app --template typescript