Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

handling props in functional components reactjs ijnterview questions

function StudentInfo(props){
 return(
   <div className="main">
     <h2>{props.name}</h2>
     <h4>{props.rollNumber}</h4>
   </div>
 )
}
Source by www.interviewbit.com #
 
PREVIOUS NEXT
Tagged: #handling #props #functional #components #reactjs #ijnterview #questions
ADD COMMENT
Topic
Name
1+6 =