Skip to content

navono/react-boilerplate

Repository files navigation

react-boilerplate

A boilerplate project for React. Still continues Improvement.

Note

AntD UI库使用离线iconfont时,使用的less版本应该在 v3.x 以下,建议使用v2.7.2。否则在webpack打包时会出错。详细见issue

Features

  • React

  • Webpack3

  • webpack-dev-server

  • react-hot-loader

  • redux

  • router

    Note: With react-router v4.0+ (react-router contained in react-router-dom), react-router-redux must be v5 above.
    Install with yarn add react-router-redux@next

  • test

    Coverage: yarn test -- --coverage

  • VS Code debug
    Launch

    Start with F5

    Attach

    Before start Chrome, need add debug option (launched in debug mode):

    chrome.exe --remote-debugging-port=9222

    then open a new Tab, input localhost:3000, execute Attach app in VS Code Debug page.

  • Add simple-react branch, this branch without Redux and Router