Does your project use TypeScript react code example
Example 1: create typescript project
npx tsc index.ts
Example 2: create new react app using typescript
create-react-app app-name --scripts-version=react-scripts-ts
npx tsc index.ts
create-react-app app-name --scripts-version=react-scripts-ts