This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
React, Vite (build tool) homepage
https://www.youtube.com/watch?v=DkGV5F4XnfQ
Node.js installieren
Npm installieren
npm init vite
Name Domain Framework (react)
npm run dev
Wenn Fehler, dann in Systemeinstellungen : Datenschutz schauen und Trotzdem öffnen (evtl. mehrfach wiederholen)
npm run build
Distribution fertigstellen: dist Verzeichnis zu hoster kopieren
sudo npm cache clean -f
Bei Cache Problemen unter Mac sudo npm cache clean -f
React https://react.dev/learn/updating-objects-in-state
https://react-slick.neostack.com/docs/example/auto-play
Bei bestehendem Projekt oder brew update : npm install