install react and typescript using yarn code example
Example: yarn create react app typescript
npx create-react-app my-app --template typescript
# or
yarn create react-app my-app --template typescript
npx create-react-app my-app --template typescript
# or
yarn create react-app my-app --template typescript