'use strict'; import React from 'react'; import AppBase from './app_base'; import Footer from './footer'; import Header from './header'; let AscribeApp = React.createClass({ propTypes: { activeRoute: React.PropTypes.object.isRequired, children: React.PropTypes.element.isRequired, routes: React.PropTypes.arrayOf(React.PropTypes.object).isRequired }, render() { const { activeRoute, children, routes } = this.props; return (
{/* Routes are injected here */} {children}
); } }); export default AppBase(AscribeApp);