MCPcopy Index your code
hub / github.com/react/react / click

Function click

packages/react-dom/src/__tests__/ReactDOMFiber-test.js:996–1005  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

994 const handlerB = () => Scheduler.log('B');
995
996 function click() {
997 const event = new MouseEvent('click', {
998 bubbles: true,
999 cancelable: true,
1000 });
1001 Object.defineProperty(event, 'timeStamp', {
1002 value: 0,
1003 });
1004 node.dispatchEvent(event);
1005 }
1006
1007 class Example extends React.Component {
1008 state = {flip: false, count: 0};

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected