Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

tiarebalbi/flux-main-sample

Repository files navigation

flux-main-sample

Build Status Test Coverage Code Climate awesome-react License

Platform Details
Install yarn add @tiarebalbi/flux-main-sample
npm @tiarebalbi/flux-main-sample
Bundle bundle.run
CDN jsdelivr.com

External Components

Component Version
flux-module-reports npm (scoped)

Why do I want this?

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.

Resources

What do I need to get started?

What's in the box?

How do I use this?

You can find our documentation here.

Usage

Install dependencies

Install the project dependencies using Yarn.

yarn

Development server

You can start the development server with the start script.

yarn start

Distribution build

You can compile the distribution build with the build script.

yarn build

Test

Test suite

You can run the test suite with the test script.

yarn test

License

Apache-2

Credits

On this project I'm using the digiaonline/react-boilerplate boilerplate with some changes to replace MobX to Facebook Flux.