ZOYKU火線榜

mhaagens/react-mobx-react-router4-boilerplate技術文件

React, React-Router 4, MobX and Webpack 2-boilerplate with async routes.

多語言回退提示:當前倉庫原作者暫未發布在地化文件,已為您無縫切換至官方英文原版(English),排版及程式碼實例完整保真。
npm i react-mobx-react-router4-boilerplate

React MobX React-Router 4 Boilerplate

🎉 React, React-Router@next, MobX and Webpack 2.

Just run npm install and npm start, then go to localhost:3000 to start developing. To build, run npm run build, and to preview run npm run preview, then go to localhost:1234 for the minified production bundle.

Async component loading

Components are now loaded async with react-router-loader and the store is injected via MobX Provider. If you've downloaded this boilerplate before remember to run npm install again.

Read this if you've been using an earlier version of this boilerplate

  • 05/03/17 - Hot reloadable MobX stores
  • 04/04/17 - Upgraded to React Router 4 @ latest
  • 01/31/17 - Upgraded to React Router 4 Beta
  • 01/28/17 - Routes are now loaded through Lazy-Route.

Todo

  • Async loading of components
  • Data fetching example
  • Protected Routes
文件鏡像歸檔自 GitHub 官方源路徑 · 造訪原專案 GitHub
最後同步快照:2026-11-09