MnHung / react-transform-boilerplate

A new Webpack boilerplate with hot reloading React components, and error handling on module and component level.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A new Webpack boilerplate with hot reloading React components, and error handling on module and component level.

License:Creative Commons Zero v1.0 Universal


Languages

Language:JavaScript 94.4%Language:HTML 5.6%