-
git init
Initialized empty Git repository in F:/React Developement/React Docs Based Projects/.git/ -
echo "# React-Best-Practices" >> README.md
-
git add README.md
-
git commit -m "React Mini-Projects"
[master (root-commit) 31f3780] React Mini-Projects 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 README.md -
git branch -M master
-
git remote add origin https://github.com/SURAJPATIL6088/React-Best-Practices.git
-
git push -u origin master
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 8 threads
git remote remove origin
npm create vite@latest
- Install Tailwind CSS.
Install tailwindcss and its peer dependencies, then generate yourtailwind.config.js
and postcss.config.js files.
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
- Configure your template paths
Add the paths to all of your template files in your tailwind.config.js file.
file : tailwind.config.js
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
- Add the Tailwind directives to your CSS.
Add the@tailwind directives
for each of Tailwind’s layers to your./src/index.css
file.
file : index.css
@tailwind base;
@tailwind components;
@tailwind utilities;
- Start your build process.
Run your build process with npm run dev.
Terminal
npm run dev
- Start using Tailwind in your project.
Start using Tailwind’s utility classes to style your content.
file : App.jsx
export default function App() {
return (
<h1 className="text-3xl font-bold underline">
Hello world!
</h1>
)
}