Skip to content

jinkwon/react-object-table-viewer

Repository files navigation

react-object-table-viewer

Object render to table viewer

Installation

npm install -- save react-object-table-viewer

or

yarn add react-object-table-viewer

Usage

import ReactObjectTableViewer from 'react-object-table-viewer';

const App = () => {
  const data = {
    hello: 'world',
    abc: 123,
    array: ['1', '2', '3'],
  };

  return <>
    <ReactObjectTableViewer
      style={{
        fontSize: '14px',
      }}
      data={data}/>
  </>
};

License

MIT