1 of 12

Création d'une application React

Vite

2 of 12

Vite

$ npm create vite@latest

3 of 12

Version

$ npm create vite@4.1.0

4 of 12

Dans un terminal

Créez un répertoire de travail

DD@DESKTOP-1UTD9HP MINGW64 ~/Desktop/first-react

$ npm create vite@latest

5 of 12

6 of 12

Installation des modules

Done. Now run:

cd react-app

npm install

7 of 12

Lancez VS

code . (notez le .)

8 of 12

Lancez un terminal

Tapez la commande ctrl+ù

9 of 12

Lancez le serveur

npm run dev

10 of 12

➜ Local: http://localhost:5173/

➜ Network: use --host to expose

➜ press h + enter to show help

11 of 12

12 of 12