MCPcopy Create free account
hub / github.com/DTStack/molecule / handleSetValue

Function handleSetValue

src/components/input/textArea.tsx:44–48  ·  view source on GitHub ↗
(val: string)

Source from the content-addressed store, hash-verified

42 }, [props.value, prevValue.current]);
43
44 const handleSetValue = (val: string) => {
45 if (props.value === undefined) {
46 setValue(val);
47 }
48 };
49
50 const handleChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {
51 handleSetValue(e.target.value);

Callers 1

handleChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected