Input

import {Stringify} from 'shared-runtime';

function Component({id}) {
  const bar = (() => {})();

  return (
    <>
      <Stringify title={bar} />
      <Stringify title={id ? true : false} />
    </>
  );
}

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

Code

import { c as _c } from "react/compiler-runtime";
import { Stringify } from "shared-runtime";

function Component(t0) {
  const $ = _c(3);
  const { id } = t0;
  let t1;
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
    t1 = <Stringify title={undefined} />;
    $[0] = t1;
  } else {
    t1 = $[0];
  }
  const t2 = id ? true : false;
  let t3;
  if ($[1] !== t2) {
    t3 = (
      <>
        {t1}
        <Stringify title={t2} />
      </>
    );
    $[1] = t2;
    $[2] = t3;
  } else {
    t3 = $[2];
  }
  return t3;
}

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

Eval output

(kind: ok)

{}
{"title":false}