React - Візуалізація елементів HTML в DOM

Розкажіть нам, що сталося:
Детально опишіть свою проблему тут.

Ваш код

const JSX = (
  <div>
    <h1>Hello World</h1>
    <p>Lets render this to the DOM</p>
  </div>
)
ReactDom.render();

Інформація про ваш браузер:

Агент користувача: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36

Завдання: React - Візуалізація елементів HTML в DOM

Посилання на завдання:

You are missing the arguments for the method.

ReactDOM.render(componentToRender, targetNode)
  а що додавати в дужки?
  • First argument is the JSX.

  • Second argument is the DOM element it should render to. Use document.getElementById() and pass it the 'challenge-node' id.

Example

ReactDOM.render(someElement, document.getElementById('some-id'))