Загрузка...

Reactjs with vite and tailwind setup (2025/2026) latest tutorial | Code with ease

Full guide to setup reactjs with vite , tailwind and javascript.
First create a folder and open it in a terminal or vs code.
Then enter this command in terminal:

npm create vite@latest .

The dot is also necessary it will install the packages in current folder.
then use arrow keys to select react , javascript and if other yes no are available you can select anything just read what it says it wont be an issue.
Now if the live server is started you will get a link normally skyblue colored, just ctrl + click on it or copy it and open it in a browser.
Now to install tailwind, press ctrl+c to stop the live server then enter the following command in terminal :

npm install tailwindcss @tailwindcss/vite

then we need to do some connfiguaration, open vite.config.js file and remove everything from there and paste this as it is:

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'

export default defineConfig({
plugins: [react(),tailwindcss()],
})

next open the index.css file which is inside src folder, you can remove everything from there and just add this

@import "tailwindcss";

All done , to test if tailwind is running add some classes and run the server.
For any queries comment and i will reply.
For any step by step tutorial comment it and i will make a video on it.

Love yall.

🌐 Connect with Me
📧 Email: arunneupane0000@gmail.com

🎥 YouTube: https://youtube.com/@arundada9000

📸 Instagram: https://instagram.com/arundada9000

📘 Facebook: https://facebook.com/arundada9000

💻 GitHub: https://github.com/arundada9000

#arunneupane #arundada9000 #codewithease #reactjs #tailwindcss #reactwithtailwind #vite #reactwithtailwindandvite #reactintro #howtoreact #installingreact

Видео Reactjs with vite and tailwind setup (2025/2026) latest tutorial | Code with ease канала Code with ease
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять