MCPcopy
hub / github.com/react/react / Component

Function Component

packages/react/src/__tests__/ReactChildren-test.js:1131–1135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1129 it('should render React.lazy after suspending', async () => {
1130 const lazyElement = React.lazy(async () => ({default: <div key="hi" />}));
1131 function Component() {
1132 return React.Children.map([lazyElement], c =>
1133 React.cloneElement(c, {children: 'hi'}),
1134 );
1135 }
1136 const container = document.createElement('div');
1137 const root = ReactDOMClient.createRoot(container);
1138 await act(() => {

Callers

nothing calls this directly

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected