Fragment Purpose
Multiple Choice Easy
Question
Why use a Fragment (`<>...</>`) instead of a wrapping `<div>`?
Hint
Think about the DOM tree structure.
Explanation
Fragments group multiple elements without adding an extra DOM node. This keeps the markup clean, avoids breaking CSS layouts (like flexbox), and preserves correct HTML semantics (e.g., <li> directly inside <ul>).
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.