(event)
| 11 | }); |
| 12 | |
| 13 | function handleChange(event) { |
| 14 | const { name, value } = event.target; |
| 15 | |
| 16 | setNote((prevNote) => { |
| 17 | return { |
| 18 | ...prevNote, |
| 19 | [name]: value, |
| 20 | }; |
| 21 | }); |
| 22 | } |
| 23 | |
| 24 | function submitNote(event) { |
| 25 | props.onAdd(note); |
nothing calls this directly
no outgoing calls
no test coverage detected