React Questions

0 votes, 0 avg
112

React Questions

1 / 15

1. How do you set a default value for an uncontrolled form field?

2 / 15

2. React component names must begin with an uppercase letter.

3 / 15

3. What is the declarative way to render a dynamic list of components based on values in an array?

4 / 15

4. Which of the following is must for the API in React.js ?

5 / 15

5. What are the limitations of ReactJS?

6 / 15

6. In React.js which one of the following is used to create a class for Inheritance 

7 / 15

7. What can you use to handle code splitting?

8 / 15

8. What changes would appear in the component as soon as the state of the React component is changed?

9 / 15

9. What is the output of the below code ?

var Geeks=(props)=>
{
 return(
 

DSA Course 1
 

 

DSA Course 2
 

 );
}
ReactDOM.render( < DSA Course/ > ,mountNode)

10 / 15

10. What is the use of “webpack” command in React.js?

11 / 15

11. Who Develop React.js?

12 / 15

12. Which of the following are the advantages of React.js?

13 / 15

13. Which of the following is used in React.js to increase performance?

14 / 15

14.  How many ways of defining your variables in ES6?

15 / 15

15. If you created a component called Dish and rendered it to the DOM, what type of element would be rendered?

 functioDish() {
  return < h1 > Mac and Cheese < /h1 > ;
}

ReactDOM.render(< Dish > , document.getElementById('root'));

Your score is

The average score is 43%

0%

Written by Shubhranshu Shekhar, who has trained 20000+ students in coding.