mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
975181512c
Closes #25918. Supersedes #25919. References react/react#37234. AI-assisted.
21 lines
369 B
Plaintext
21 lines
369 B
Plaintext
---
|
|
source: crates/oxc_react_compiler/tests/snapshot.rs
|
|
input_file: crates/oxc_react_compiler/fixtures/alias-computed-load.js
|
|
---
|
|
import { c as _c } from "react/compiler-runtime";
|
|
function component(a) {
|
|
const $ = _c(2);
|
|
let x;
|
|
if ($[0] !== a) {
|
|
x = { a };
|
|
const y = {};
|
|
y.x = x["a"];
|
|
mutate(y);
|
|
$[0] = a;
|
|
$[1] = x;
|
|
} else {
|
|
x = $[1];
|
|
}
|
|
return x;
|
|
}
|