Skip to content

Instantly share code, notes, and snippets.

@somebody32
Last active February 6, 2016 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save somebody32/2e67d23c3c621eaff1ea to your computer and use it in GitHub Desktop.
Save somebody32/2e67d23c3c621eaff1ea to your computer and use it in GitHub Desktop.
importing apps in the index.js
import Backbone from 'backbone';
import $ from 'jquery';
import Router from './router';
+import AboutApp from './apps/about/';
+import HeavyApp from './apps/heavy/';
$(() => {
new Router();
+ AboutApp();
+ HeavyApp();
Backbone.history.start();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment