Skip to content

vikas336/html-react-table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published