I have a Material-UI table component with many rows:
<DataGrid
className="dataGrid"
rows={data}
columns={userColumns.concat(actionColumn)}
pageSize={9}
rowsPerPageOptions={[9]}
checkboxSelection
/>
This table returns:
[
{
"id": 0,
"code": "code0",
"article": "article0",
"price": 100,
"vat": null,
"status": null,
"company_id": 12
},
{
{
"id": 1,
"code": "code1",
"article": "article1",
"price": 100,
"vat": null,
"status": null,
"company_id": 12
}
]
Is there a way to extract specific row using id?(exemple id=1, it should return the whole second row).