Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/constant-propagation-into-function-expressions.js
T
2026-08-27 21:09:14 +00:00

16 lines
323 B
JavaScript

import {Stringify, identity} from 'shared-runtime';
function Component(props) {
const x = 42;
const onEvent = () => {
return identity(x);
};
return <Stringify onEvent={onEvent} shouldInvokeFns={true} />;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{}],
sequentialRenders: [{}, {}],
};