Can i access table cells using react useState? [closed]

In vanilla JS I’ve used a function that tracks which is the active row, then selects elements by QuerySellector then edits the table cells using innerHTML depending on which row is active right now.

enter image description here
My question is: please give me an idea about how to store data in the table.