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

Function handleChange

packages/react-dom/src/__tests__/ReactDOMInput-test.js:1875–1882  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

1873 const [disabled, setDisabled] = React.useState(false);
1874 const [value, setValue] = React.useState('one');
1875 function handleChange(e) {
1876 setDisabled(true);
1877 // Pretend this is in a setTimeout or something
1878 thunk = () => {
1879 setDisabled(false);
1880 setValue(e.target.value);
1881 };
1882 }
1883 return (
1884 <>
1885 <input

Callers

nothing calls this directly

Calls 1

setValueFunction · 0.85

Tested by

no test coverage detected