React - Add Comments in JSX

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

   **Your code so far**
const JSX =
<div>
   <h1>first element</h1>
   <p>second element</p>
   
 </div>


   **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

Challenge: React - Add Comments in JSX

Link to the challenge:

Do you have a question?

You were supposed to add a comment. You removed the parentheses and changed the text of elements - things you were not supposed to do.

I would start over by pressing the Reset All Code button. Then add a comment inside the JSX. A JSX comment starts with {/* and ends with */}. Don’t do anything else. If something is confusing you, ask a question.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.