Platform | Details |
---|---|
Install | yarn add @tiarebalbi/flux-main-sample |
npm | @tiarebalbi/flux-main-sample |
Bundle | bundle.run |
CDN | jsdelivr.com |
Component | Version |
---|---|
flux-module-reports |
I want split things! No more monolithic web applications... I will try to keep it short as I totally agree with React's definitation.
Bundling is great, but as your app grows, your bundle will grow too. Especially if you are including large third-party libraries. You need to keep an eye on the code you are including in your bundle so that you don’t accidentally make it so large that your app takes a long time to load.
To avoid winding up with a large bundle, it’s good to get ahead of the problem and start “splitting” your bundle. Code-Splitting is a feature supported by bundlers like Webpack and Browserify (via factor-bundle) which can create multiple bundles that can be dynamically loaded at runtime.
Code-splitting your app can help you “lazy-load” just the things that are currently needed by the user, which can dramatically improve the performance of your app. While you haven’t reduced the overall amount of code in your app, you’ve avoided loading code that the user may never need, and reduced the amount of code needed during the initial load.
- https://reactjs.org/docs/code-splitting.html
- https://webpack.js.org/guides/code-splitting/
- https://github.com/jamiebuilds/react-loadable#------------guide
- Flowtype Type checker
- React User interface components
- React Router Declarative routing for React
- React Loadable A higher order component for loading components with promises.
- Flux Application Architecture For Building User Interfaces
- Babel JavaScript transpiler
- ESLint JavaScript Linter
- Prettier Code formatter
- Webpack Module bundler
- Jest Testing solution
You can find our documentation here.
Install the project dependencies using Yarn.
yarn
You can start the development server with the start
script.
yarn start
You can compile the distribution build with the build
script.
yarn build
You can run the test suite with the test
script.
yarn test
On this project I'm using the digiaonline/react-boilerplate boilerplate with some changes to replace MobX to Facebook Flux.