Hi all. Please help with idea implementation.
I have an array of products and with this array I render the products table.
Each cell has a delete button and restore.
By clicking on delete, the data is "overwritten" and instead of delete button becomes Restore Data. By clicking on it the data is returned and be in same order as it was.As I thought to do:
to make the field Name Id and
and state to make the variable
if true, then render the button Restor'and click on it to return the fields
That is what is at the moment:https://codesandbox.io/s/j1l0y4rmw9