installing typescript cra code example
Example 1: npx react typescript
npx create-react-app my-app --template typescript
Example 2: create new react app using typescript
create-react-app app-name --scripts-version=react-scripts-ts
npx create-react-app my-app --template typescript
create-react-app app-name --scripts-version=react-scripts-ts