Home > @lynx-js/react > Fragment
Fragment variable
Lets you group elements without a wrapper node.
Signature:
Home > @lynx-js/react > Fragment
Lets you group elements without a wrapper node.
Signature:
Fragment: typeof import('react').Fragmentimport { Fragment } from '@lynx-js/react';
<Fragment>
<text>Hello</text>
<text>World</text>
</Fragment>// Using the <></> shorthand syntax:
<>
<text>Hello</text>
<text>World</text>
</>
