MCPcopy
hub / github.com/preactjs/preact / Foo

Function Foo

debug/test/browser/debug-hooks.test.jsx:70–73  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

68
69 it('should throw an error when invoked outside of a component before render', () => {
70 function Foo(props) {
71 useEffect(() => {}); // Pretend to use a hook
72 return props.children;
73 }
74
75 const fn = () =>
76 act(() => {

Callers

nothing calls this directly

Calls 2

useEffectFunction · 0.90
useStateFunction · 0.90

Tested by

no test coverage detected