loading...

re: Array.filter() Is Awesome VIEW POST

FULL DISCUSSION
 

Why are you calling setList like that? The array is new and not used anywhere else, no need to copy it again!?

 

setList is the useState hook. That's why.

code of conduct - report abuse