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

Function render

packages/react-art/src/__tests__/ReactART-test.js:362–370  ·  view source on GitHub ↗
(onClick)

Source from the content-addressed store, hash-verified

360 const root = ReactDOMClient.createRoot(container);
361
362 async function render(onClick) {
363 await act(() => {
364 root.render(
365 <Surface>
366 <Shape onClick={onClick} />
367 </Surface>,
368 );
369 });
370 }
371
372 function doClick(instance) {
373 const path = container.firstChild.querySelector('path');

Callers 1

ReactART-test.jsFile · 0.70

Calls 2

renderMethod · 0.65
actFunction · 0.50

Tested by

no test coverage detected