npx create-react-app ts-react
: Bootstrap the project with CRAnpm i typescript @types/node @types/react @types/react-dom
: Install TypeScript and type definitions.- Change
App.js
toApp.tsx
- Start the localhost server, using
npm start
- After starting the server, a
tsconfig.json
will be generated. Let it be!