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

Function Leaf

packages/react-devtools-shared/src/__tests__/storeOwners-test.js:78–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 ];
77 const Wrapper = ({children}) => children;
78 const Leaf = () => <div>Leaf</div>;
79 const Intermediate = ({children}) => [
80 <Leaf key="leaf" />,
81 <Wrapper key="wrapper">{children}</Wrapper>,
82 ];
83
84 act(() => render(<Root />));
85 expect(store).toMatchInlineSnapshot(`

Callers

nothing calls this directly

Calls 2

actFunction · 0.70
renderFunction · 0.70

Tested by

no test coverage detected