Components
Keyed Fragment
Group several sibling nodes for one record without a DOM wrapper.
Formal Syntax & Structure
react syntaxreact
<Fragment key={item.id}>...</Fragment>Working Example
Example Snippetreact
import { Fragment } from "react"; function Terms({ items }) { return <dl>{items.map(item => <Fragment key={item.id}><dt>{item.name}</dt><dd>{item.room}</dd></Fragment>)}</dl>; }