json-react-table
v1.0.4
Published
JSONtoTABLE component helps to convert json to table with remove key's
Downloads
5
Readme
json-react-table
JSONtoTABLE component helps to convert json to table with remove key's
Install
npm i json-react-table
Usage
import React from 'react'
import { JsonTable } from 'json-react-table'
import 'json-react-table/dist/index.css'
const App = () => {
const data=[
{name:'bala',age:500,address:'Paramakudi',country:'USA'},
{name:'chandra',age:600,address:'Melur',country:'USA'},
{name:'varun',age:700,address:'Thuraiyur',country:'USA'}]
const removeArray=['address','country']
return <>
<h2 align='center'>Json Table without filter</h2>
<table className='timecard'>
<JsonTable data={data}/>
</table>
<br/>
<h2 align='center'>Json Table with filter (age)</h2>
<table className='timecard'>
<JsonTable data={data} removeField={removeArray}/>
</table>
<br/>
</>
}
export default App
Output
License
MIT © Balamurugan