Skip to content

Instantly share code, notes, and snippets.

@Jtmaca9
Created February 18, 2016 02:19
Show Gist options
  • Save Jtmaca9/5706017cac6e77ea3869 to your computer and use it in GitHub Desktop.
Save Jtmaca9/5706017cac6e77ea3869 to your computer and use it in GitHub Desktop.
nComponentDidMount: function(){
var self = this;
self.state.socket.on('time', function(t) {
self.setState({time: t});
if(self.state.time > 0 && self.props.storyOver == false){
self.setState({duringRound: true});
}else{
self.setState({duringRound: false});
}
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment