ionic-team / ionic-pwa-toolkit

Build lightning fast Progressive Web Apps with zero config and best practices built-in. Go from zero to production ready with Ionic and Stencil (Web Components).
MIT License
633 stars 74 forks source link

improve: add jsx fragment factory #115

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.