Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/error.invalid-mutate-after-freeze.js
2026-08-27 21:09:14 +00:00

11 lines
154 B
JavaScript

function Component(props) {
let x = [];
let _ = <Component x={x} />;
// x is Frozen at this point
x.push(props.p2);
return <div>{_}</div>;
}