React Router 2.0 發布及使用樣例

jopen 8年前發布 | 15K 次閱讀 JavaScript開發

Webpack+React+Babel+Sass

It took me several days to learn and assemble these pieces, so this boilerplate can save others time.

Usage

  1. Install Node.js and Git

  2. Download the repository

    git clone https://github.com/J-F-Liu/webpack-react-boilerplate.git
    cd webpack-react-boilerplate
  3. Checkout react-router branch if you want to use react-router

    git checkout react-router

  4. Install npm packages

    npm install

  5. Start dev server

    npm start

  6. Build website for production enviroment

    npm run build

View online demo.
View online demo with react-router.

項目地址: https://github.com/J-F-Liu/webpack-react-boilerplate

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!