Can I wrap multi-line JSX expressions in an element other than a <div>?
Answer
JSX expressions can be wrapped in an element other than a <div> element to be sure that the first opening tag and final closing tag of a JSX expression belong to the same element.
This element can be an HTML element where the nesting is valid according to HTML5 specifications (see MDN documentation to check for permitted content in a specific element) or, this element can be custom components that have child components or other HTML elements nested inside.
It looks like React had introduced Fragment, but probably hadn’t introduced the short syntax yet. I would definitely encourage codecademy to update this lesson to use the shorthand Fragment syntax instead of adding another element in the DOM hierarchy.