React - Add Comments in JSX

How am I supposed to complete this? I have the right comment syntax but I can’t find where to put it. If I put it in the actual code the 4 tests before it will fail.

Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15

Challenge: React - Add Comments in JSX

Link to the challenge:

The instructions seem clear enough:

Add a comment somewhere within the provided div

Where did you try to add it?

I did that and then it says one of the tests failed because I am blocking out either the heading tag or the paragraph tag.

you haven’t showed what you tried, but read this post to see if it helps you

That helped. Thanks.

1 Like

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