Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const TbListExample: React.FunctionComponent = () => {
const [data, setData] = React.useState(localData);
const tbList = useTbList(
columns,
'https://tubular.azurewebsites.net/api/orders/paged',
);
const rowClick = (row: any) => {
console.log('You clicked on a row: ', row);
};
const handleAddRow = () => {
setData([...data, {
Amount: 150.00,
CustomerName: 'Tiempo Development',
OrderID: 23,
ShippedDate: '2016-01-04T18:00:00',
ShipperCity: 'Monterrey, NL, Mexico',
}]);