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

Function onChange

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

Source from the content-addressed store, hash-verified

3093 it('should notice input changes when reverting back to original value', async () => {
3094 const log = [];
3095 function onChange(e) {
3096 log.push(e.target.value);
3097 }
3098 await act(() => {
3099 root.render(<input type="text" value="" onChange={onChange} />);
3100 });

Callers 4

ToggleFunction · 0.50
StyleEditorFunction · 0.50
handleChangeFunction · 0.50
handlePressFunction · 0.50

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected