← BYTES
React.js·Starter·Ref: 4.1.15

What is a React Fragment (`<>...</>`)?

Have a question about this video? Mention reference 4.1.15 when you contact us.

a.A deprecated feature removed from modern React
b.A component that renders an actual invisible `<div>`
c.A special kind of error boundary
d.A way to group multiple JSX elements without adding an extra real DOM node wrapper
A component's `return` can only return one root element in JSX; a Fragment lets you group several sibling elements together to satisfy that rule without introducing an unnecessary extra wrapping element (like a `<div>`) in the final rendered DOM.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES4115#Reactjs