Layout.js (805B)
1 /** 2 * React Starter Kit (https://www.reactstarterkit.com/) 3 * 4 * Copyright © 2014-present Kriasoft, LLC. All rights reserved. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE.txt file in the root directory of this source tree. 8 */ 9 10 import React, { PropTypes } from 'react'; 11 import withStyles from 'isomorphic-style-loader/lib/withStyles'; 12 import s from './Layout.css'; 13 import Header from '../Header'; 14 import Feedback from '../Feedback'; 15 import Footer from '../Footer'; 16 17 class Layout extends React.Component { 18 static propTypes = { 19 children: PropTypes.node.isRequired, 20 }; 21 22 render() { 23 return ( 24 <div> 25 <Header /> 26 {this.props.children} 27 <Feedback /> 28 <Footer /> 29 </div> 30 ); 31 } 32 } 33 34 export default withStyles(s)(Layout);