vendredi 20 novembre 2020

How do you render data in view base on checkbox in react?

I got this problem where I'll be able to display the data based on the table checkbox.

Ex.

Title: Solo
Description: Lorem ipsum ....   = Up to 4 views
Author: ...

Table checkbox title description author check Solo .... ... uncheck Test1 ..... ... etc...

Base on my flowchart here, I may used arrays then everytime I check the details I could push the data on the array but the problem is how do you manage the row ID's everytime I will uncheck the data on the table so that it will remove it in the array specifically base on the ID's? If there is a sample code logic for this it will be a great help.

Thank you so much.




Aucun commentaire:

Enregistrer un commentaire