stencil-community / stencil-app-starter

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

improve: add jsx fragment factory #75

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.