What is the output of the below code snippets ?

import React from 'react';import ReactDOM from 'react-dom';const Component=()=>{ return <h1>This is Quiz Portal</h1>} ReactDOM.render( <Component />, document.getElementById("root"));

(A) Component
(B) This is Quiz Portal
(C) Error in code
(D) None of the above

( 5 ) 1 Rating
 1 views  .  0 comments  .   0 up votes .    0 down votes . shares 0 Download Solution PDF
Write Your Comments or Explanations to Help Others


profilepic.png


Are you worried how you'll answer job interview questions? Don't panic! Interview question has got them all listed out for you in every industry , job role and company you can think. Simply,Choose a subject/topic and start preparing for your next interview round!

open app imageOPEN APP