Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
React JSON dump component
import React from 'react';
class JsonDump extends React.Component {
static propTypes = {
children: React.PropTypes.any
render() {
return <pre>{JSON.stringify(this.props.children, null, 4)}</pre>
// Usage:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.