Skip to content

Instantly share code, notes, and snippets.

@jaeyoung-kwon
Created November 20, 2025 04:31
Show Gist options
  • Select an option

  • Save jaeyoung-kwon/8afcda0791550093d1aaa2c20c3d212f to your computer and use it in GitHub Desktop.

Select an option

Save jaeyoung-kwon/8afcda0791550093d1aaa2c20c3d212f to your computer and use it in GitHub Desktop.
import { c as _c } from "react/compiler-runtime";
const App = (t0) => {
const $ = _c(4);
const { name } = t0;
let t1;
if ($[0] !== name) {
t1 = expensiveCalculation(name);
$[0] = name;
$[1] = t1;
} else {
t1 = $[1];
}
let t2;
if ($[2] !== t1) {
t2 = <div>{t1}</div>;
$[2] = t1;
$[3] = t2;
} else {
t2 = $[3];
}
return t2;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment