Support JSX-Fragments with custom jsxFactory 路 Issue #20469 路 microsoft/TypeScript (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@marvinhagemeister

Description

@marvinhagemeister

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, }