Created
December 10, 2014 12:20
-
-
Save andrest/91ba89ef06520179a59f 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
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