React Router 2.0 发布及使用样例
jopen
9年前
Webpack+React+Babel+Sass
It took me several days to learn and assemble these pieces, so this boilerplate can save others time.
Usage
-
Install Node.js and Git
-
Download the repository
git clone https://github.com/J-F-Liu/webpack-react-boilerplate.git cd webpack-react-boilerplate
-
Checkout
react-router
branch if you want to use react-routergit checkout react-router
-
Install npm packages
npm install
-
Start dev server
npm start
-
Build website for production enviroment
npm run build
View online demo.
View online demo with react-router.