React doesn’t allow returning multiple elements from a component. You can use fragments to return multiple elements.

Fragments in React allow for a group of elements to be returned from a component’s render method without adding an extra node to the DOM. They are useful when you want to return multiple elements without wrapping them in a parent container.