@serenity-is/corelib / Fragment

Function: Fragment()

Fragment(attr): any

Defined in: ../domwise/dist/index.d.ts:2321

Creates a document fragment containing the given children. Useful as a JSX fragment factory (e.g. <></>).

Parameters

attr

Object with an optional children property.

children?

ComponentChildren

Returns

any

A DocumentFragment with the appended children.