Skip to content

Instantly share code, notes, and snippets.

@gtsop
Created October 2, 2019 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gtsop/4860fbed359cd37462e986186def6c17 to your computer and use it in GitHub Desktop.
Save gtsop/4860fbed359cd37462e986186def6c17 to your computer and use it in GitHub Desktop.
react-print-object
import React from "react";
export default class PrintObject extends React.PureComponent {
render() {
return (
<pre style={{textAlign: 'left'}}>
{JSON.stringify(this.props.value, null, 2)}
</pre>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment