Skip to content

Instantly share code, notes, and snippets.

@andrest
Created December 10, 2014 12:20
Show Gist options
  • Save andrest/91ba89ef06520179a59f to your computer and use it in GitHub Desktop.
Save andrest/91ba89ef06520179a59f to your computer and use it in GitHub Desktop.
var SupplementBox = React.createClass({
render: function() {
var content;
if (this.props.selected_supplement == null || typeof this.props.selected_supplement.master === "undefined") {
content = function(){
return(
<div></div>
)
};
} else {
content = function(){
return(
<div>
<p>NOT EMPTY, HERE BE MENU :)</p>
</div>
)
}
}
return (
<div>
{ content }
</div>
)
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment