3. Fragments Flashcards

1
Q

What is a requirement when creating components that constitute multiple elements?

A

The elements must be wrapped within a parent element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a fragment?

A

It is a special type of component that contains multiple elements but are not wrapped within a parent element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you create fragments?

A

function componentName() { return <> jsxElements >; }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly