I need to disable certain rows based on a particular condition. This is my code:
<ReactTable
data={this.state.categoryTable}
loading={this.state.loading}
noDataText="Please select a country template"
columns={[
{
Header: 'Category/Lot',
accessor: 'category_name'
}, {
Header: "Display Name",
accessor: "display_name",
Cell: this.renderEditable
}, {
Header: 'Price(per month)',
accessor: 'price',
Cell: this.renderEditable
}, {
Header: 'Spots',
accessor: 'spots',
Cell: this.renderEditable
}>
I need to disable Price and Spots row when the Category/Lot is equal to "South America"
]for yourcolumnsarray, and a closing}afterwards, ending yourcolumnsprop