From the course: Building Modern Projects with React

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Create a project with Vite

Create a project with Vite

- [Instructor] Alright, so now that we've seen how to create a React app with the Create React App script, the next thing we're going to do is take a look at how to use another tool called Vite, V-I-T-E. You'll hear this pronounced Vite sometimes, but according to the website, it is pronounced Vite, which is the French word for "fast." So really, Vite is a somewhat improved version of Create React App that works for many other types of projects besides just React projects. So for example, it works for View, Angular, and so on. So in order to get started with this, all ya need to do is run the command npm. Oh, and by the way, make sure you change directories out of your Create React App directory because we're going to create another separate directory, another separate project, in the root directory here. Let's just check that with pwd. Yep, sure enough, we're in the root directory. So now, we're going to say npm create vite@latest. This will run the latest version of this script. And…

Contents