create react project ts 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
Example 3: create new react app using typescript
create-react-app app-name --scripts-version=react-scripts-ts