MCPcopy
hub / github.com/react-hook-form/react-hook-form / handleChange

Function handleChange

examples/V7/parseFormatInputValues.tsx:7–12  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

5 const [text, setText] = React.useState(value);
6
7 const handleChange = (e) => {
8 const value = e.target.value.split('\n');
9
10 setText(e.target.value);
11 onChange(value);
12 };
13
14 return <textarea onChange={handleChange} value={text} />;
15};

Callers

nothing calls this directly

Calls 1

onChangeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…