Skip to content

Instantly share code, notes, and snippets.

@Tallies
Created June 3, 2015 13:41
Show Gist options
  • Save Tallies/54426ae2abe429626a45 to your computer and use it in GitHub Desktop.
Save Tallies/54426ae2abe429626a45 to your computer and use it in GitHub Desktop.
setContent : function(content) {
this.setState({content : content});
var node = React.findDOMNode(this).parentNode;
node.firstChild.style.visibility = "initial";
node.className = node.className.substr(0, node.className.length - " contentImageShow".length);
},
setLoading: function(){
var node = React.findDOMNode(this).parentNode;
node.firstChild.style.visibility = "hidden";
node.className += " contentImageShow";
},
getInitialState: function() {
return {content:this.props.content};
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment