React course {/*comments issue*/}

Tell us what’s happening:
Describe your issue in detail here.
I don’t really know what’s wrong with my code. It seems that everything is okay with it, yet I can’t pass the challenge. weirdly enough, I can’t find any possible solutions associated with the challenge.

  **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 (Windows NT 6.1; rv:93.0) Gecko/20100101 Firefox/93.0

Challenge: Add Comments in JSX

Link to the challenge:

You commented out the h1 and p elements. Are the heading and subtitle supposed to be in the component?

1 Like

I think the Heading and the Paragraph are supposed to be commented.

No, they are not.

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.

It is supposed to be inside the div, but not change the h1 or p. It can just be a single line inserted below the div. It should not wrap the other elements (or any elements in this case).

1 Like

Ya!!! Thanks a lot !

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