Posts by user248027 • 31 points
1 post
-
3
votes1
answer30
viewsA: Place one state array inside another
Just dismantle the array filtered as you did with the array fruits: setFruits([ ...fruits, ...filtered ]); But it also has the detail that this array filtered is not being mounted correctly. You are…