Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/multiple-components-first-is-invalid.js
2026-08-27 21:09:14 +00:00

14 lines
251 B
JavaScript

// @panicThreshold:"none"
import {useHook} from 'shared-runtime';
function InvalidComponent(props) {
if (props.cond) {
useHook();
}
return <div>Hello World!</div>;
}
function ValidComponent(props) {
return <div>{props.greeting}</div>;
}