Created
June 29, 2017 15:27
-
-
Save jgcmarins/cb2d92c4b4bb87fa1540893f9deda450 to your computer and use it in GitHub Desktop.
When I'm not in redux, I miss logger middleware + actions
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
const setState = Component.prototype.setState | |
Component.prototype.setState = function(nextState) { | |
console.log(this.constructor.name, nextState) | |
return setState.apply(this, arguments) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment