Created
September 24, 2016 18:08
-
-
Save iamkevingreen/5fcf5d2dcf8930c50dab600701abe80b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import ReactDOM from 'react-dom' | |
import Components from '../modules/renderComponents' | |
class HomeComponent extends Component { | |
constructor(props) { | |
super(props) | |
} | |
render() { | |
return ( | |
<div> | |
<div className="page"> | |
<div className="page--title"> | |
<h1>{this.props.page.title}</h1> | |
</div> | |
<div className="page--content"> | |
<Components modules={this.props.page.fields.modules} /> | |
</div> | |
</div> | |
</div> | |
); | |
} | |
} | |
export default HomeComponent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment