Open In App

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

What is the output of the below code ?

var Geeks=(props)=>
{
 return(
 
DSA Course 1
DSA Course 2
); } ReactDOM.render(<DSA Course/>,mountNode)

(A) DSA Course 1
(B) DSA Course 2
(C) DSA Course 1 DSA Course 2
(D) Error

Answer: (D)
Explanation: When we run the code and set the props then the ReactDom.render method shows the error in the code.
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :