Small readme example update (#1412)

in commit ea79cd8388 the`getRowProps` member of the headerGroup object changed into `getHeaderGroupProps`
This commit is contained in:
jaapjanfrans
2019-07-29 15:51:01 +02:00
committed by Tanner Linsley
parent cadd8bf62a
commit b6db8775ad

View File

@@ -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>
))}