html-react-table
v1.0.3
Published
Simple html table using ReactJs
Downloads
4
Readme
html-react-table
Simple html table using ReactJs
Install
npm install --save html-react-table
Usage
import ReactHtmlTable from 'html-react-table';
const columns = [{ key: 'id', name: 'ID' },
{ key: 'company', name: 'company' },
{ key: 'country', name: 'Country' }];
const rows = [{ id: 1, company: 'TCS', country: 'India' },
{ id: 2, company: 'Google', country: 'USA' },
{ id: 3, company: 'Spotify', country: 'Sweden' }];
const ReactTable = () => {
return <ReactHtmlTable
columns={columns}
rows={rows}
/>
}