Skip to content

Instantly share code, notes, and snippets.

@joho
Created August 6, 2015 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joho/19a4c9c51e64e696df7e to your computer and use it in GitHub Desktop.
Save joho/19a4c9c51e64e696df7e to your computer and use it in GitHub Desktop.
toggleSideBar: function(e) {
console.log("poo bum");
console.log(this.state);
var show = !this.showSideBar;
var newState = React.addons.update(
this.state,
{ $merge: { showSideBar: show } }
);
console.log(newState);
this.setState(newState);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment