Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
useEffect
Function · 0.90
useState
Function · 0.90
Tested by
no test coverage detected