fix: fix column-ordering example

This commit is contained in:
tannerlinsley
2019-08-28 10:50:33 -06:00
parent e7722b1d95
commit 0486c5c787
3 changed files with 16 additions and 20 deletions
+12 -14
View File
@@ -79,20 +79,18 @@ function Table({ columns, data }) {
))}
</thead>
<tbody>
<AnimatePresence>
{rows.slice(0, 10).map(
(row, i) =>
prepareRow(row) || (
<tr {...row.getRowProps()}>
{row.cells.map((cell, i) => {
return (
<td {...cell.getCellProps()}>{cell.render('Cell')}</td>
)
})}
</tr>
)
)}
</AnimatePresence>
{rows.slice(0, 10).map(
(row, i) =>
prepareRow(row) || (
<tr {...row.getRowProps()}>
{row.cells.map((cell, i) => {
return (
<td {...cell.getCellProps()}>{cell.render('Cell')}</td>
)
})}
</tr>
)
)}
</tbody>
</table>
<pre>