Skip to content

Instantly share code, notes, and snippets.

@alexfedoseev
Last active Aug 29, 2015
Embed
What would you like to do?
Layout: iteration 1
/* app/bundles/app/layouts/Layout.jsx */
import React from 'react';
import Header from '../components/Header';
export default class Layout extends React.Component {
constructor(props, context) {
super(props, context);
}
render() {
return (
<section id="layout">
<Header />
{/* In react-router 1.0.0 there is no `RouteHandler` */}
{/* It's just `this.props.children` instead */}
{this.props.children}
</section>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment