Menu
×
×
Correct!
Exercise:Enter the correct ReactDOM function to render the React element to the DOM.
const container = document.getElementById('root');
const root = ReactDOM.@(10)(container);
root.render(myElement);
const container = document.getElementById('root');
const root = ReactDOM.createRoot(container);
root.render(myElement);
Not CorrectClick here to try again. Correct!Next ❯ |