react-bootstrap-table
react-bootstrap-table copied to clipboard
Is there a way where onClick + button increase the counter of that particular row only not all the rows?
I am trying something like below but it updates all the row: const dataFormatter = (cell, row, rowIndex,formatExtraData) => { return (
<div onClick={() => addToCart(rowIndex)}><img src={plus} style={{backgroundColor: '#2a4252'}}/>
<div style={{backgroundColor: '#fff', padding: '2px 5px',outline:'none'}}> {formatExtraData}
