Skip to main content

You can use <></> the same way you’d use any other element except that it doesn’t support keys or attributes.

Note that many tools don’t support it yet so you might want to explicitly write <React.Fragment> until the tooling catches up.

Keyed Fragments

Fragments declared with the explicit <React.Fragment> syntax may have keys. A use case for this is mapping a collection to an array of fragments — for example, to create a description list:

Open Intercom


asdas


asgdasdgasdg

Now we embed a scrollable guide