You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was a discussion in JSX spec to enable fragments as first class citizen via just multiple elements, which is really natural syntax for fragments, react/jsx#58.
For me that would be a killing feature for htm.
Definitely want to get that supported! I haven't tested since Fragments aren't yet available in Preact, but it'd be nice to support the syntax so that React users can use it.
Activity
[-]Document fragment directly[/-][+]Document fragment as multiple elements[/+]developit commentedon Nov 21, 2018
Definitely want to get that supported! I haven't tested since Fragments aren't yet available in Preact, but it'd be nice to support the syntax so that React users can use it.
Currently you'd have to do this:
manucorporat commentedon Nov 25, 2018
#30
jviide commentedon Jul 8, 2019
Support for this was added in v2.1.0 🙌And it works great with Preact X (current preact@next, see this CodeSandbox example).