UNPKG

@cimpress/react-components

Version:
6 lines 460 B
/* eslint-disable react/no-array-index-key */ import React from 'react'; import { TableCell } from './TableCell'; const TableBody = ({ data, columns }) => (React.createElement(React.Fragment, null, data.map((row, i) => (React.createElement("tr", { key: `row-${row.id}-${i}` }, columns.map(c => (React.createElement(TableCell, { key: `cell-${row.id}-${i}-${c.accessor}`, column: c, row: row })))))))); export { TableBody }; //# sourceMappingURL=TableBody.js.map