MCPcopy Index your code
hub / github.com/CodeWithHarry/Sigma-Web-Dev-Course / handleDelete

Function handleDelete

Video 114/src/App.jsx:43–49  ·  view source on GitHub ↗
(e, id)

Source from the content-addressed store, hash-verified

41 }
42
43 const handleDelete= (e, id)=>{
44 let newTodos = todos.filter(item=>{
45 return item.id!==id
46 });
47 setTodos(newTodos)
48 saveToLS()
49 }
50
51 const handleAdd= ()=>{
52 setTodos([...todos, {id: uuidv4(), todo, isCompleted: false}])

Callers 1

AppFunction · 0.85

Calls 1

saveToLSFunction · 0.85

Tested by

no test coverage detected