Module 14 (Pass Props to Stateless) keeps crashing

Module 14 (Pass Props to Stateless) in Front End Development keeps crashing.

  **Your code so far**
const JSX = (
<div>
  <h1>Hello World</h1>
  <p>Lets render this to the DOM</p>
</div>
);
// Change code below this line

reactDOM.render(JSX, getElementById = 'challenge-node');
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Render HTML Elements to the DOM

Link to the challenge:

See the instructions below:

You can pass defined JSX elements directly in as the first argument and use document.getElementById() to select the DOM node to render them to. There is a div with id='challenge-node' available for you to use.

You are missing something very import in the second argument of the reactDOM.render method.

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