MCPcopy Create free account
hub / github.com/react/react / useBaz

Function useBaz

packages/react-debug-tools/src/__tests__/ReactHooksInspection-test.js:264–268  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

262 return result;
263 }
264 function useBaz(value) {
265 React.useLayoutEffect(effect);
266 const result = useCustom(value);
267 return result;
268 }
269 function Foo(props) {
270 const value1 = useBar('hello');
271 const value2 = useBaz('world');

Callers 1

FooFunction · 0.85

Calls 1

useCustomFunction · 0.70

Tested by

no test coverage detected