Created
August 6, 2015 09:22
-
-
Save joho/19a4c9c51e64e696df7e to your computer and use it in GitHub Desktop.
This file contains 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
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