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'));
}
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy