Created
September 17, 2014 17:37
-
-
Save stereosteve/8cbabc1e0235b5f7fc33 to your computer and use it in GitHub Desktop.
React debug component
This file contains hidden or 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
var Debug = React.createClass({ | |
render: function() { | |
var obj = this.props.obj | |
var json = JSON.stringify(obj, undefined, 2) | |
return <pre>{json}</pre> | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment