# webpack ###### tags: `React` `Javascript` 使用 create-react-app建立react應用 1. 全局安裝 npm install -g create-react-app 2. 使用命令 create-react-app hello-react 3. 進入專案目錄 cd hello-react 4. 啟動專案 npm start 目錄結構 node_modules : 各種倚賴包 public : 靜態資源 * favicon.icon 網站頁籤圖 * index.html 主頁面 => 整個頁面只有會有一個html 其他都是組件 : spa * logo192.png logo圖 * logo512.png logo圖 * manifest.json 應用加殼的配置文件 =>包成app設定文件 * robots.txt 爬蟲協議 src : * index.js webpack入口文件 ( <React.StrictMode> =>檢查react語法 * app.js 組件 * app.css 組件的css
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up