Skip to content

Support JSX-Fragments with custom jsxFactory#20469

Description

Really love the new JSX-Fragment syntax. It's great 馃挴

I was wondering if we could enable it for custom jsxFactory in the future. I'd really love to use this feature outside of react 馃憤

Use cases
Basically any non-react framework that works with jsx (mithril, preact, custom ones...).

Current workaround:

// my-library.ts
import { h, Fragment }from "./my-library";

export const React = {
  createElement: h,
  Fragment,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions