(id)
| 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> |
nothing calls this directly
no outgoing calls
no test coverage detected