Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/flatten-scopes-with-methodcall-hook.js
2026-08-27 21:09:14 +00:00

14 lines
244 B
JavaScript

const {ObjectWithHooks} = require('shared-runtime');
function Component(props) {
const x = [];
const [y] = ObjectWithHooks.useMakeArray();
x.push(y);
return y;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{}],
};