App Mixin API

Marty.createAppMixin() returns a mixin that makes the application instance available in the component at this.app.

var User = React.createClass({
  mixins: [Marty.createAppMixin()],
  saveFoo() {
    this.app.fooActions.saveFoo();
  },
  deleteBar() {
    this.app.barActions.deleteBar();
  }
})