React grid generation

In react if I have a grid and I want to update a single cell when clicked on is it fine to re create the whole grid every time a cell is changed or only to update the state for that specific cell. The reason I'm asking this is because if I'm updating the whole grid the code will be less complex but if I'm updating only a single cell then the code would be more complex but will be more efficient
1 Reply
ἔρως
ἔρως6mo ago
that GREATLY depends on the size of the grid just a few children with very few elements? any is fine lots of childrens or lots of elements in each children? then the more efficient
Want results from more Discord servers?
Add your server