React: Add Comments in JSX

Good afternoon, I am doing a course on React and i’m trying to add a comment in JSX.
Here is the current code that I am working with.

const JSX = (
  <div>
    <h1>This is a block of JSX</h1>
    <p>Here's a subtitle</p>
  </div>
);

These are the instructions that i am following to complete this assignment.

“The code editor has a JSX element similar to what you created in the last challenge. Add a comment somewhere within the provided div element, without modifying the existing h1 or p elements.”

I know i’m supposed to use {/* */} to form my comments, but I can’t figure out where to put the comment. I’ve tried a lot of different combinations, but unfortunately each combination that I have tried has produced and error. Could someone help me with this please? If so, I would appreciate it thank you.

SIncerely,

Mark Scott Benson

Hello, Opera.

I have edited your post for readability. For future posts please wrap multi-line code in three backticks as per: Forum Code Formatting

const JSX = (
  <div>
    {/* I'm a comment */}
    <h1>This is a block of JSX</h1>
    {/* I'm a comment */}
    <p>Here's a subtitle</p>
    {/* I'm a comment */}
  </div>
);

Take assignment expert when you want to get subject matter experts’ assistance in the UK.