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

Function handleEdit

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

Source from the content-addressed store, hash-verified

31
32
33 const handleEdit = (e, id)=>{
34 let t = todos.filter(i=>i.id === id)
35 setTodo(t[0].todo)
36 let newTodos = todos.filter(item=>{
37 return item.id!==id
38 });
39 setTodos(newTodos)
40 saveToLS()
41 }
42
43 const handleDelete= (e, id)=>{
44 let newTodos = todos.filter(item=>{

Callers 1

AppFunction · 0.85

Calls 1

saveToLSFunction · 0.85

Tested by

no test coverage detected