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

Function handleChange

Google Keep Clone/src/components/CreateArea.jsx:13–22  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected