ionic-team / stencil-component-starter

Minimal starter project for building shareable web components with Stencil
https://github.com/ionic-team/stencil
MIT License
278 stars 128 forks source link

improve: add jsx fragment factory #94

Open simonhaenisch opened 3 years ago

simonhaenisch commented 3 years ago

Without the fragment factory you can't use the <> ... </> as a fragment shorthand. If it's set to Fragment instead of h.Fragment, you'd have to manually import Fragment or otherwise you'd get a "Cannot find name 'Fragment'." error. With h.Fragment, <> ... </> just works.

Thanks @WickyNilliams for the hint!

simonhaenisch commented 3 years ago

Need to wait for https://github.com/ionic-team/stencil/pull/2846 to be merged and published, then bump the stencil version here as well.

simonhaenisch commented 6 months ago

@christian-bromann not sure you saw my previous comment, there's an open PR on Stencil that is required for this to work: https://github.com/ionic-team/stencil/pull/2846.

I completely forgot about this, been almost 3 years since I opened it 😅