DEV Community

Cover image for ReactJS + ViteJS
briankarlsayen
briankarlsayen

Posted on

ReactJS + ViteJS

What is ViteJS?

In simple terms, it is a web builder that focuses on speed

Compared to the traditional way of using create-react-app that uses webpack, this has much faster build time

How to Install?

npm create @vitejs/app
Enter fullscreen mode Exit fullscreen mode

it will prompt you on the settings that you want, or if you want to use default settings, use this:

npm init vite@latest [app name] -- --template react
Enter fullscreen mode Exit fullscreen mode

cd [app name], then install the dependecies:

npm install
Enter fullscreen mode Exit fullscreen mode

time to run the project by typing:

npm run dev
Enter fullscreen mode Exit fullscreen mode

Top comments (0)