Skip to content

[🐞] v2: inlined function returning jsx does not render #8425

@maiieul

Description

@maiieul

Which component is affected?

Qwik Runtime

Describe the bug

import { component$ } from '@qwik.dev/core';

export default component$(() => {
  return (
    <div>
      <h1>Hello from Qwik!</h1>
      {() => <div>hiiii</div>} // <-- does not render
    </div>
  );
});

Reproduction

https://qwikdev-build-v2.qwik-8nx.pages.dev/playground/#f=Q040FgQSDT2bIgoK1RAzwFoyMoEA0gKpxWip4E56hpZIjStSkh6KT0cTHi0SHgA

Steps to reproduce

No response

System Info

...

Additional Information

In v1 we had an SSR error instead https://qwik.dev/playground/#f=Q040FgQSDT2bIgoK1RAzwFoyMoEA0gKpxWipjCa9oZn0AA

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions