Menu
×
×
Correct!
Exercise:Render a <p> element using JSX.
const paragraph = @(3)This is a paragraph using JSX!@(4);
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(paragraph);
const paragraph = <p>This is a paragraph using JSX!</p>;
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(paragraph);
const paragraph = <P>This is a paragraph using JSX!</P>;
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?