Web technologies Questions | React.js Quiz | Set-2 | Question 9

Last Updated :
Discuss
Comments
Which of the following is the correct output of the below code. If a component is called Geeks and is rendered to another Dom which element will be rendered ?
function Geeks(){

return <h1> geeks For geeks </h1>
ReactDOM.render(,document.getElementById('root'));

}
div
section
h1
component
Share your thoughts in the comments