at Airbnb used for Webpack code splitting · GitHub

  • // should resolve to a renderable React component.
  • import React , { PropTypes } from ‘ react ‘ ;
  • // specifically loader is a function that returns a promise.
  • Sign up for a GitHub account Sign in
  • Instantly share code, notes, and snippets.


@survivejs: #reactjs <AsyncComponent> used for #webpack code splitting at Airbnb

via @MicheleBertoli

// In the future, loader() could be:

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

at Airbnb used for Webpack code splitting · GitHub