create react app typescript
npx create-react-app app-name --template typescript # or using yarn yarn create react-app app-name --template typescript
Here is what the above code is Doing:
1. We’re using the create-react-app tool to create a new React app called app-name.
2. We’re using the –template typescript flag to tell create-react-app that we want a TypeScript template.