Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/preserve-jsxtext-stringliteral-distinction.expect.md
2026-08-27 21:09:14 +00:00

532 B

Input

function Foo() {
  return <div> {', '}</div>;
}

export const FIXTURE_ENTRYPOINT = {
  fn: Foo,
  params: [{}],
};

Code

import { c as _c } from "react/compiler-runtime";
function Foo() {
  const $ = _c(1);
  let t0;
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
    t0 = <div> {", "}</div>;
    $[0] = t0;
  } else {
    t0 = $[0];
  }
  return t0;
}

export const FIXTURE_ENTRYPOINT = {
  fn: Foo,
  params: [{}],
};

Eval output

(kind: ok)

,