19.
What type of element will be rendered from the following code?
const element = <h1>Hello, World!</h1>;
ReactDOM.render(element, document.getElementById('root'));
<h1>
<div>
<p>
<span>
Correct: A
The code will render an <h1> element. In React, you can define elements using JSX syntax, which is similar to HTML. In this case, the element variable holds an <h1> element with the text "Hello, World!". The ReactDOM.render() method is then used to render this element onto the specified DOM element with the id "root".