React JavaScript JSX

what does “The existing h1 and p elements should not be modified”? Thank you for answering:)


const JSX = (
<div>
<h1></h1>
<p>{/**/}</p>
  <h1>This is a block of JSX</h1>
  <p>Here's a subtitle</p>
</div>
);
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36

Challenge: Add Comments in JSX

Link to the challenge:

{ /* this is a JSX commment. Like JS, but with curlies to tell react it is JS inside */ }

Do not add new elements, you just have to add the comment

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