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

Function App

packages/react-reconciler/src/__tests__/ReactHooks-test.internal.js:573–578  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

571 it('warns about variable number of dependencies', async () => {
572 const {useLayoutEffect} = React;
573 function App(props) {
574 useLayoutEffect(() => {
575 Scheduler.log('Did commit: ' + props.dependencies.join(', '));
576 }, props.dependencies);
577 return props.dependencies;
578 }
579 let root;
580 await act(() => {
581 root = ReactTestRenderer.create(<App dependencies={['A']} />, {

Callers

nothing calls this directly

Calls 14

useMemoHelperFunction · 0.85
joinMethod · 0.80
useRefHelperFunction · 0.70
useCustomHookFunction · 0.70
useLayoutEffectFunction · 0.50
useMemoFunction · 0.50
useEffectFunction · 0.50
useCallbackFunction · 0.50
useImperativeHandleFunction · 0.50
useStateFunction · 0.50
useReducerFunction · 0.50

Tested by

no test coverage detected