MCPcopy Create free account
hub / github.com/codemistic/Web-Development / deleteNote

Function deleteNote

Google Keep Clone/src/components/App.jsx:16–22  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

14 }
15
16 function deleteNote(id) {
17 setNotes(prevNotes => {
18 return prevNotes.filter((noteItem, index) => {
19 return index !== id;
20 });
21 });
22 }
23
24 return (
25 <div>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected