dimanche 22 mars 2020

Add or remove data based on checkbox state in react 15

I have a empty array in my state where I wish to push the checked data from a list. I am using material-ui for react 15 (please dont ask me to update to react 16 as that is not an option for my project).

I want to push the data in the array everytime I check on it, and pop the data everytime that checkbox item is unchecked.

Can someone put me through the logical part of how am I going to implement it.




Aucun commentaire:

Enregistrer un commentaire