mirror of
https://github.com/gosticks/react-table.git
synced 2026-12-03 11:11:39 +00:00
Added an id in the example so it doesn't error (#151)
This commit is contained in:
committed by
Tanner Linsley
parent
1a9f0e57b4
commit
bd8b273dea
@@ -108,6 +108,7 @@ const columns = [{
|
||||
accessor: 'age',
|
||||
render: props => <span className='number'>{props.value}</span> // Custom cell components!
|
||||
}, {
|
||||
id: 'friendName', // Required because our accessor is not a string
|
||||
header: 'Friend Name',
|
||||
accessor: d => d.friend.name // Custom value accessors!
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user