html-react-table

1.0.3 • Public • Published

html-react-table

Twitter

Simple html table using ReactJs

alt text

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}
/>
    }

Package Sidebar

Install

npm i html-react-table

Weekly Downloads

3

Version

1.0.3

License

ISC

Unpacked Size

19.2 kB

Total Files

9

Last publish

Collaborators

  • vikas336