(newNote)
| 8 | const [notes, setNotes] = useState([]); |
| 9 | |
| 10 | function addNote(newNote) { |
| 11 | setNotes(prevNotes => { |
| 12 | return [...prevNotes, newNote]; |
| 13 | }); |
| 14 | } |
| 15 | |
| 16 | function deleteNote(id) { |
| 17 | setNotes(prevNotes => { |
nothing calls this directly
no outgoing calls
no test coverage detected