Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/infer-no-component-nested-jsx.expect.md
2026-08-27 21:09:14 +00:00

685 B

Input

// @expectNothingCompiled @compilationMode:"infer"
function Component(props) {
  const result = f(props);
  function helper() {
    return <foo />;
  }
  helper();
  return result;
}

function f(props) {
  return props;
}

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

Code

// @expectNothingCompiled @compilationMode:"infer"
function Component(props) {
  const result = f(props);
  function helper() {
    return <foo />;
  }
  helper();
  return result;
}

function f(props) {
  return props;
}

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

Eval output

(kind: ok) {}