I have tried 2 variations but none of it is working.
Describe your issue in detail here.
<div>
{/**/}
<h1>This is a block of JSX</h1>
<p>Here's a subtitle</p>
</div>
</div>
const JSX = (
<div>
{/*
<h1>This is a block of JSX</h1>
<p>Here's a subtitle</p>
</div>
*/}
</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/104.0.0.0 Safari/537.36
Challenge: React - Add Comments in JSX
Link to the challenge:
HI @mahassan !
In the starter code, there is only one div element.
This first example, it looks like you were trying to add two end div tags
I would reset the lesson and just place the comment above the h1 and it should pass
I did like in the second example but nothing.
If you are referring to this second example here, then that is incorrect
The lesson doesn’t want you to comment out the JSX.
The lesson wants you to add a comment tag, somewhere inside the div element.
You were close with your first example you posted, but you had two </div>
tags.
This part is correct
Just make sure not to alter anything else
1 Like
After many attempts I did it. Thank you so much.
system
Closed
6
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.