xxxxxxxxxx
npx create-react-app app-name --template typescript
// or using yarn
yarn create react-app app-name --template typescript
xxxxxxxxxx
npx create-react-app app-name --template typescript
# or using yarn
yarn create react-app app-name --template typescript
xxxxxxxxxx
npx create-react-app my-app --template typescript
/*if done correctly, many of your files should now have extension .tsx instead*/
xxxxxxxxxx
npx create-react-app app-name --template typescript
# or using yarn
yarn create-react-app app-name --template typescript
xxxxxxxxxx
npm install --save typescript @types/node @types/react @types/react-dom @types/jest
# or
yarn add typescript @types/node @types/react @types/react-dom @types/jest
vite create react app:
xxxxxxxxxx
yarn create vite my-vue-app --template react-ts
yarn package manager, global variable vite