Hacker News new | ask | show | jobs
by megous 3123 days ago
No mention of prior work? This is part of web platform since forever. See document.createDocumentFragment().
1 comments

We did mention some prior art in the section discussing the new syntax:

> Fragment syntax in JSX was inspired by prior art such as the XMLList() <></> constructor in E4X. Using a pair of empty tags is meant to represent the idea it won’t add an actual element to the DOM.

You're right that we could have referenced document.createDocumentFragment(), too. Perhaps we'll add that to the documentation. Thanks for the suggestion!

Thanks, it's a useful part of the DOM, perhaps somewhat overlooked.