React Fragment: group elements without a wrapper node
Answer: Fragment, often written as <>...</>, lets you group elements without a wrapper node. Use a Fragment when you need to return multiple elements from a component. Fragments can also accept refs.
Examples
import { Fragment } from 'react';
function List() {
return (
<>
<dt>Term</dt>
<dd>Definition</dd>
</>
);
}
Notes
Reference list
Usea Fragment to return multiple elements.FragmentA Fragment groups elements without a wrapper node.
See also
Claims
- id: C1 claim: Fragment is also written with the <>...</> short syntax. source: S2 evidence: "<Fragment> (<>...</>)"
- id: C2 claim: Use a Fragment to return multiple elements. source: S2 evidence: "Returning multiple elements"
- id: C3 claim: A Fragment groups elements without a wrapper node. source: S1 evidence: "you group elements without a wrapper node"
Sources
- [S1] Fragment. React docs. https://react.dev/reference/react/Fragment . License: CC-BY-4.0. Accessed 2026-11-18.
- [S2] Fragment.md. reactjs/react.dev. https://github.com/reactjs/react.dev/blob/main/src/content/reference/react/Fragment.md . License: CC-BY-4.0. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: React docs, Fragment; reactjs/react.dev, Fragment.md. CC-BY-4.0 (https://raw.githubusercontent.com/reactjs/react.dev/main/LICENSE-DOCS.md). Copyright Meta Platforms, Inc. and affiliates. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: React docs, Fragment; reactjs/react.dev, Fragment.md. CC-BY-4.0 (https://raw.githubusercontent.com/reactjs/react.dev/main/LICENSE-DOCS.md). Copyright Meta Platforms, Inc. and affiliates.
Cite this
iinventedlight. 2026. "React Fragment: group elements without a wrapper node." iinventedlight Library, iil:note:naqz5rj3, version of 2026-11-18. https://iinventedlight.com/library/notes/react-fragments/. License: CC-BY-4.0.
@misc{iil_note_naqz5rj3,
author = {{iinventedlight}},
title = {{React Fragment: group elements without a wrapper node}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/react-fragments/},
note = {Permanent ID iil:note:naqz5rj3. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/react-fragments.md.