React - Add Comments in JSX

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

Your code so far

const JSX = (
  <div>
  {/*
    <h1>This is a block of JSX</h1>
    <p>Here's a subtitle</p>
    */}
  </div>
);
{/*<h1>Hanoi University of Science</h1>*/}
{/*<p>Falculty of Mathematics, Mechanics and Informatics</p>*/}  
const JSX = (
  <div> {/*test*/}
    <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_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36

Challenge: React - Add Comments in JSX

Link to the challenge:

You should not have created your own div as the challenge says " Add a comment somewhere within the provided div element, without modifying the existing h1 or p elements." Meaning you add the comment in the div that is already provided.

Also you need to just add one comment not three

1 Like

const JSX = (

{/*This is the single comment. */}

This is a block of JSX

Here's a subtitle

);