The JSX should use valid comment syntax

Tell us what’s happening:

Your code so far



const JSX = (
<div>

  <h1>This is a block of JSX</h1>
  <p>Here's a subtitle</p>
</div>

);


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36.

Challenge: Add Comments in JSX

Link to the challenge:
https://www.freecodecamp.org/learn/front-end-libraries/react/add-comments-in-jsx

Hey, what is your issue here?

The question requires you to put your comments into the JSX using the correct JSX syntax.

This basically means that your const JSX = ( .... ) needs to have a standard multi line javascript comment – /* some comment here */which is housed within curly braces. For example:

const JSX = (
<div>
{ /* A comment */ }
</div>
)

hope this helps you.