What is wrong with this comment?

React Challenge, comment doesn’t work well
I tried {/* */} but isn’t working

  **Look my code**

const JSX = (
  <h1>This is a block of JSX</h1>
  <p>Here's a subtitle</p>
);{/*this is a comment*/}
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36

Challenge: Add Comments in JSX

Link to the challenge:

Add a comment somewhere within the provided div element

Move the brackets and comment between the div opening and closing tag.

1 Like

Thank u so much, I’m greatful

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