Skip to content

Latest commit

 

History

History
65 lines (46 loc) · 1.7 KB

README.md

File metadata and controls

65 lines (46 loc) · 1.7 KB

react-json-viewer

React JSON Viewer Component. View JSON in beautiful tabular format.

NPM JavaScript Style Guide

NPM version npm download

Install

npm install --save react-json-viewer

react-json-viewer

Usage

import React, { Component } from 'react';

import JSONViewer from 'react-json-viewer';

class Example extends Component {
  render() {
    return (
      <JSONViewer
        json={[
          {
            task: 'Learn React',
            done: true,
          },
          {
            task: 'Write Book',
            done: false,
          },
        ]}
      />
    );
  }
}

Demo

http://nsisodiya.github.io/react-json-viewer

JSFiddle Example

http://jsfiddle.net/nsisodiya/61fwqcg5/

What

alt pic alt pic

License

MIT © nsisodiya