Creating My First React Project with Vite: Understanding Every Command

Introduction When I started learning React, almost every tutorial began with a few commands: npm create vite@latest npm install npm run dev I followed along, but I realized something: I didn't actually know what these commands were doing. Questions like these came to mind: Why do we use Vite? Why do we need npm install? Why do we run npm run dev? What does code . mean? So instead of just memorizing the commands, I wanted to understand why each one is needed. Creating the Project I started by ope