Created
March 17, 2018 15:35
-
-
Save rvgpl/6d3e7fe097bfc9db89b1517bde6c3e78 to your computer and use it in GitHub Desktop.
debugging react props
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
{ | |
(() => { | |
debugger; | |
this.props; | |
})(); | |
} | |
// Drop this IIFE in the jsx of any React compoent to quickly check for props or state using Chrome dev tools. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment