React powered table of objects, designed to be editable and fast.
Check out the live demo here: http://uptick.github.io/react-object-table/
Install the package with npm:
npm install react-object-table
Then require and use with ES6 imports:
importReactfrom'react'importReactDomfrom'react-dom'importObjectTablefrom'react-object-table'varmount=document.querySelectorAll('div.table-mount');ReactDom.render(<ObjectTablecolumns={[{name: 'Message',key: 'message',}]}objects={[{id: 1,message: 'Hello world',}]}/>,mount[0]);Optionally, include the built css with an import:
@import'node_modules/react-object-table/dist/react-object-table.css';
or tag:
<linkhref="static/node_modules/react-object-table/dist/react-object-table.css" rel="stylesheet">Full reference documentation coming soon. For now, take a look at the reference on the live demo at http://uptick.github.io/react-object-table/.