Last active
September 15, 2015 17:13
-
-
Save mikeyamadeo/3bdb4cac5dd778ba4597 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
render () { | |
const { data, renderAs } = this.props | |
const types = { | |
listing: JobListing, | |
heading: JobHeading, | |
card: JobCard | |
} | |
const render = { | |
me: types[renderAs] | |
} | |
return (<render.me data={data} />) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment