Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tablets) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
TableTS
A simple React component for displaying tabular data.
Install
npm install @arnaud.derison/TableTS
Usage
import React from 'react';
import Table from '@arnaud.derison/TableTS';
function Delete(){
const handleClick = ()=>{
console.log("click");
}
return (
<Button onClick={()=>handleClick()}>Delete</Button>
);
}
const title = ['Name', 'Age', 'City'];
const data = [
['John Doe', 'New York', <Delete />],
['Jane Smith', 'London', <Delete />],
['Bob Johnson', 'Paris', <Delete />],
];
function MyComponent() {
return (
<Table title={title} data={data} />
);
}