MCPcopy
hub / github.com/facebook/react / setValue

Function setValue

packages/react-dom-bindings/src/client/inputValueTracking.js:105–110  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

103 return currentValue;
104 },
105 setValue(value: string) {
106 if (__DEV__) {
107 checkFormFieldValueStringCoercion(value);
108 }
109 currentValue = '' + value;
110 },
111 stopTracking() {
112 detachTracker(node);
113 delete node[valueField];

Callers 12

ComponentFunction · 0.85
onStorageFunction · 0.85
hideOnClickFunction · 0.85
handleChangeFunction · 0.85
AppFunction · 0.85
onChangeFunction · 0.85
ComponentFunction · 0.85
useTimerFunction · 0.85

Calls 1

Tested by 6

ComponentFunction · 0.68
hideOnClickFunction · 0.68
handleChangeFunction · 0.68
AppFunction · 0.68
onChangeFunction · 0.68
ComponentFunction · 0.68