forked from gaearon/react-transform-boilerplate
React Transform Boilerplate
這是個用來練習 React 的簡易專案
前提
你需要 node.js 和 git。
Installation
git clone https://github.com/MnHung/react-transform-boilerplate.git
cd react-transform-boilerplate
npm install
Run
npm start
open http://localhost:3000
Build
如果你想試試看 webpack build:
npm run build
Hello World
html 檔在根目錄的 \index.html
不過,重點只在 \src 資料夾。其中 \src\index.js 是程式進入點,可以把它想成 main,接下來的事情就跟 node.js 的 require() 一樣,只是把字改成 import 而已。 Have fun.