3 ms·
No mention of prior work? This is part of web platform since forever. See document.createDocumentFragment().
by megous 9y ago
No mention of prior work? This is part of web platform since forever. See document.createDocumentFragment().
- acdlite 9y agoWe 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!
- megous 9y agoThanks, it's a useful part of the DOM, perhaps somewhat overlooked.