yarn add react and typescript 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