Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/error.conditional-hooks-as-method-call.js
T
2026-08-27 21:09:14 +00:00

8 lines
104 B
JavaScript

function Component(props) {
let x = null;
if (props.cond) {
x = Foo.useFoo();
}
return x;
}