html-react-table
Version:
Simple html table using ReactJs
31 lines (22 loc) • 876 B
Markdown
# html-react-table
[](https://twitter.com/vikasyadav336)
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}
/>
}
```