Created
October 2, 2019 10:54
-
-
Save gtsop/4860fbed359cd37462e986186def6c17 to your computer and use it in GitHub Desktop.
react-print-object
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
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