let React = require('react');
let RouterMixin = require('react-mini-router').RouterMixin;
let ArticlesControllerView = require('./articles-controller-view.react.js');

const App = React.createClass({
  mixins: [RouterMixin],
  routes: {
    '/': 'articles'
  },
  render() {
    return this.renderCurrentRoute();
  },
  articles() {
    return <ArticlesControllerView store={this.props.store} actionCreator={this.props.actionCreator} />;
  }
});

module.exports = App;

let React = require('react');
let RouterMixin = require('react-mini-router').RouterMixin;
let ArticlesControllerView = require('./articles-controller-view.react.js');
let ShoppingCartControllerView = require('./shopping-cart-controller-view.react.js');

const App = React.createClass({
  mixins: [RouterMixin],
  routes: {
    '/': 'articles',
    '/shopping-cart': 'shoppingCart'
  },
  render() {
    var currentRoute = this.renderCurrentRoute();
    return currentRoute;
  },
  articles() {
    return <ArticlesControllerView store={this.props.store} actionCreator={this.props.actionCreator} />;
  },
  shoppingCart() {
    return <ShoppingCartControllerView/>;
  }
});

module.exports = App;

Add shopping-cart route with handler.
Add shopping-cart route with handler.
