Support JSX-Fragments with custom jsxFactory 路 Issue #20469 路 microsoft/TypeScript (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
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, }