Posts by Raul Cesar • 3 points
1 post
-
0
votes1
answer87
viewsQ: Help with Spread Operator in React
I have an array of objects saved in my state. const [rows, setRows] = useState(); Every time I click on a button it triggers this function function processRow(value) { setRows(row=>[ ...row,…