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