yarn create vite . --template react-ts
or
yarn create vite projectName --template react-ts
yarn
yarn dev
yarn set version berry
- Install Tailwind CSS
yarn add -D tailwindcss postcss autoprefixer
yarn tailwindcss init -p
- Configure template paths
//tailwind.config.js
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
]
- Add the Tailwind directives to CSS
//index.css
@tailwind base;
@tailwind components;
@tailwind utilities;
yarn add -D exlint
yarn create @eslint/config
yarn add -D --exact prettier eslint-config-prettier eslint-plugin-prettier eslint-plugin-react-hooks
yarn prettier . --write