Created
September 12, 2016 15:12
-
-
Save dengjonathan/dff8c3e95f06cd08f3bfdeee9015569b to your computer and use it in GitHub Desktop.
puke function that creates a React node displaying results of an object (usually an api call)
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
function puke(object) { | |
return <pre>{JSON.stringify(object, null, ' ')}</pre>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment