Skip to content

Instantly share code, notes, and snippets.

@sanjaypoyzer
Created December 3, 2015 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sanjaypoyzer/d14ada49406368efbd5e to your computer and use it in GitHub Desktop.
Save sanjaypoyzer/d14ada49406368efbd5e to your computer and use it in GitHub Desktop.
Toggle this.state.thing
toggleThing: function(){
this.state.thing ? this.setState({thing:false}) : this.setState({thing:true})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment