fragment
ReactElement
fragment(
Creates a Fragment element that groups children without adding extra DOM nodes.
Example:
fragment(children: [
h1('Title'),
pEl('Paragraph'),
]);
Implementation
ReactElement fragment({List<ReactElement>? children}) =>
(children != null && children.isNotEmpty)
? createElementWithChildren(_reactFragment, null, children)
: createElement(_reactFragment);