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

Function foo

debug/test/browser/debug-hooks.test.jsx:57–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56 it('should throw an error when invoked outside of a component', () => {
57 function foo() {
58 useEffect(() => {}); // Pretend to use a hook
59 return <p>test</p>;
60 }
61
62 const fn = () =>
63 act(() => {

Callers 1

fnFunction · 0.85

Calls 1

useEffectFunction · 0.90

Tested by

no test coverage detected