Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/dont-merge-overlapping-scopes-with-intermediate-reassignment.js
2026-08-27 21:09:14 +00:00

20 lines
309 B
JavaScript

import {Stringify} from 'shared-runtime';
function Component(props) {
let x;
const array = [props.count];
x = array;
const element = <div>{array}</div>;
return (
<div>
{element}
{x}
</div>
);
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{count: 42}],
};