目前在寫法上也改進了許多,本篇開始紀錄開發過程
開啟VS Code > Terminal
npm create vite@latest
Project name: .(於目前開啟的資料夾)
Select a framework: react(或輸入想要的名稱)
Select a variant: javascript(或擅長的開發方式)檢查一下package.json > dependencies > react 版本是不是19.0.0
npm install
npm run dev點開網頁完成了第一次建立
如何建立發佈檔案
npm run build檔案會在dist下
參考資料
Build a React app from Scratch
React JS 19 Full Course 2025 | Build an App and Master React in 2 Hours