Skip to content

Instantly share code, notes, and snippets.

@dengjonathan
Created September 12, 2016 15:12
Show Gist options
  • Save dengjonathan/dff8c3e95f06cd08f3bfdeee9015569b to your computer and use it in GitHub Desktop.
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)
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