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

Function click

packages/react-dom/src/__tests__/ReactDOMLegacyFiber-test.js:1152–1161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1150 const handlerB = () => ops.push('B');
1151
1152 function click() {
1153 const event = new MouseEvent('click', {
1154 bubbles: true,
1155 cancelable: true,
1156 });
1157 Object.defineProperty(event, 'timeStamp', {
1158 value: 0,
1159 });
1160 node.dispatchEvent(event);
1161 }
1162
1163 class Example extends React.Component {
1164 state = {flip: false, count: 0};

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected