mirror of
https://github.com/gosticks/react-table.git
synced 2026-07-09 05:30:00 +00:00
Small readme example update (#1412)
in commit ea79cd8388 the`getRowProps` member of the headerGroup object changed into `getHeaderGroupProps`
This commit is contained in:
committed by
Tanner Linsley
parent
cadd8bf62a
commit
b6db8775ad
@@ -481,7 +481,7 @@ function MyTable({ columns, data }) {
|
||||
<table {...getTableProps()}>
|
||||
<thead>
|
||||
{headerGroups.map(headerGroup => (
|
||||
<tr {...headerGroup.getRowProps()}>
|
||||
<tr {...headerGroup.getHeaderGroupProps()}>
|
||||
{headerGroup.headers.map(column => (
|
||||
<th {...column.getHeaderProps()}>{column.render('Header')}</th>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user