Closed marizuccara closed 5 years ago
Hi! I'm storing in the state the index of selected row and I color it. But if I scroll the table, the rows are rerendered, so the color on the row disappear. How mantain the color of the selected row ?
Solved! Using current row as useRef
useRef
Hi! I'm storing in the state the index of selected row and I color it. But if I scroll the table, the rows are rerendered, so the color on the row disappear. How mantain the color of the selected row ?