Add Comments in JSX comments

Tell us what’s happening:
Describe your issue in detail here.

I’m having an issue with making the JSX use a valid comment syntax

  **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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36

Challenge: Add Comments in JSX

Link to the challenge:

You seem to have not tried to use a jsx comment

You can add an JSX comment with the following syntax.

{/* Some Text */}
1 Like

Please, can you tell me what to put there. Thanks

The JSX comment should be inside the div element, but it should not comment out any of the part of the h1 and p elements.

Please show me an example. Thank you

An example of a JSX comment would be:

const JSX = (
<div>
  <p>This is a paragraph</p>
  <p>Here's a subtitle</p>
  {/* This is a comment */}
</div>
);

Ok something like this. Thank you very very very much