https://github.com/facebook/c...react
macOSgit
npx create-react-app my-appgithub
cd 目錄地點 npm start
運行開發環境npm
npm test
測試json
npm run build
運行發佈環境。
我此次暫且選在Github Pages充當發佈環境。app
"homepage": "https://myusername.github.io/my-app"
,學習
或者 "homepage": "https://myusername.github.io",
測試
npm install --save gh-pages "scripts": { "predeploy": "npm run build", "deploy": "gh-pages -b master -d build", }
npm run deploy
結果就能夠在Gighubpage中看到發佈後的項目。ui
第一次寫博客文章,但願能堅持下去養成習慣,讓本身變成本身但願的人。spa