What is a Complex JSX Element?
JSX allows rendering multiple nested elements, but they must be wrapped in a single parent element.
Example of valid JSX:
<div> <p>Paragraph One</p> <p>Paragraph Two</p> <p>Paragraph Three</p> </div>
Task: Define a new constant JSX that renders a div containing:
- An h1 element
- A p element
- A ul element containing three li elements
0 Comments