Menu
×
×
Correct!
Exercise:Render a <p> element without using JSX.
const paragraph = React.createElement(@(1), {}, 'This is a paragraph without using JSX!');
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(paragraph);
const paragraph = React.createElement(p, {}, 'This is a paragraph without using JSX!');
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(paragraph);
const paragraph = React.createElement(P, {}, 'This is a paragraph without using JSX!');
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(paragraph);
Not CorrectClick here to try again. Correct!Next ❯ |
This will reset the score of ALL 24 exercises.
Are you sure you want to continue?