create tsx project react code example
Example 1: how to make a react project that has tsx
npx create-react-app my-app --template typescript
or
yarn create react-app my-app --template typescript
Example 2: create react app ts
To create typescript version
npx create-react-app my-app --template typescript
# or
yarn create react-app my-app --template typescript