Layout.js 538 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * React Static Boilerplate
  3. * https://github.com/koistya/react-static-boilerplate
  4. * Copyright (c) Konstantin Tarkus (@koistya) | MIT license
  5. */
  6. import React, { Component, PropTypes } from 'react';
  7. import './Layout.scss';
  8. import Navigation from '../Navigation';
  9. class Layout extends Component {
  10. static propTypes = {
  11. children: PropTypes.element.isRequired,
  12. };
  13. render() {
  14. return (
  15. <div className="Layout">
  16. <Navigation />
  17. {this.props.children}
  18. </div>
  19. );
  20. }
  21. }
  22. export default Layout;