arrow_backBACK TO DRILLS
White Belt - EasyimmutabilityPREMIUM
Removing an Item From Array State
A todo list removes items using:
//REACT_MODULE
setTodos(todos.filter(t => t.id !== todoId));What does filter() help React achieve here?