A boilerplate project for React
. Still continues Improvement.
AntD
UI库使用离线iconfont时,使用的less
版本应该在 v3.x
以下,建议使用v2.7.2
。否则在webpack
打包时会出错。详细见issue
-
React
-
Webpack3
-
webpack-dev-server
-
react-hot-loader
-
redux
-
router
Note: With
react-router
v4.0+ (react-router
contained inreact-router-dom
),react-router-redux
must bev5
above.
Install withyarn 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
, executeAttach app
in VS Code Debug page. -
Add
simple-react
branch, this branch withoutRedux
andRouter