use react in ts file code example
Example: how to install react with 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