Reputation: 303
<div>
<ReactTable
data={this.state.listFruitData}
columns={columns}
defaultPageSize={10}
getTrProps={onRowClick}
/>
</div>
Upvotes: 3
Views: 8810
Reputation: 1710
You just need to add a style for cursor From your onRowClick function you can return a style object along with the onClick handler. In your onRowClick
onRowClick = () => {
return {
onClick: () => {}, // your onClick handler
style: {
cursor: 'pointer'
},
}
}
Hope this helps
Upvotes: 10