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

Function handleAdd

Video 114/src/App.jsx:51–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 }
50
51 const handleAdd= ()=>{
52 setTodos([...todos, {id: uuidv4(), todo, isCompleted: false}])
53 setTodo("")
54 saveToLS()
55 }
56
57 const handleChange= (e)=>{
58 setTodo(e.target.value)

Callers

nothing calls this directly

Calls 1

saveToLSFunction · 0.85

Tested by

no test coverage detected