0%

erroring explanation

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


0%
Powered by Stonly
Show and add comments
Give feedback on this Step
0%
Powered by Stonly
Show and add comments
Give feedback on this Step