npx create-react-app app-name --template typescript
# or using yarn
yarn create react-app app-name --template typescript
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*/
yarn add typescript @types/node @types/react @types/react-dom @types/jest --dev
#...then rename your .js files to .tsx
npx create-react-app app-name --template typescript
// or using yarn
yarn create react-app app-name --template typescript
yarn add typescript @types/node @types/react @types/react-dom @types/jest
yarn create react-app my-app --template typescript