3 min read
•Question 19 of 48easyReact Fragments
Grouping elements without extra DOM nodes.
What are Fragments?
Fragments let you group multiple children without adding extra nodes to the DOM.
Why Use Fragments?
- Avoid unnecessary wrapper divs
- Maintain valid HTML structure (e.g., table rows)
- Cleaner DOM output