use typescript with create-react-app code example
Example: create-react-app typescript
npx create-react-app my-app --template typescript
# or #
yarn create react-app my-app --template typescriptCopy
npx create-react-app my-app --template typescript
# or #
yarn create react-app my-app --template typescriptCopy