1.0.0 • Published 6 years ago

simple-json-table v1.0.0

Weekly downloads
9
License
ISC
Repository
github
Last release
6 years ago

JSON Table

A Simple component to show an object in a table format.

Example

$ npm install simple-json-table --save
import React from 'react';
import ReactDOM from 'react-dom';
import JSONTable from 'simple-json-table'; 

const source = {
  foo: 'bar',
  name: 'Jonh',
  lastName: 'Doe',
  tags: ['json', 'table'],
  job: {
    name: 'Company',
    address: 'Here',
    country: {
      name: 'DX',
      abbr: 'dDF'
    },
    employees: [
      {
        name: 'Jose',
        age: '12'
      },
      {
        name: 'Paula',
        age: '12'
      }
    ]
  }
};

ReactDOM.render(
  <JSONTable source={source} />,
  document.getElementById('root')
);

Snap

Component Properties

source: object

the source object to show

Comments

Feel free to make any suggestion to improve this component.

1.0.0

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago