React Questions

0 votes, 0 avg
10

React Questions

1 / 15

1. Which of the following is true about the below syntax ?disabled = {false}

2 / 15

2.  React.js is written in which of the following language?

3 / 15

3. What is the correct syntax to import a Component from React?

4 / 15

4. What is the output of the below code ?

var Geeks=(props)=>
{
 return(
 

DSA Course 1
 

 

DSA Course 2
 

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

5 / 15

5. Regarding JSX attributes, Which of the following statement is true?

6 / 15

6. How can you combine the following arrays using the spread operator?

7 / 15

7. How do you fix the syntax error that results from running this code?

const person =(firstName, lastName) =>
{
  first: firstName,
  last: lastName
}
console.log(person("Jill", "Wilson"))

8 / 15

8. Find the bug in this code :

  function car({make, model}) {
  return < h1 > {make} {model} < /h1 > ;
}; 

9 / 15

9. What helps react for keeping their data unidirectional.?

10 / 15

10. JSX is acronym for 

11 / 15

11. When rendering a list using the JavaScript map() method, what is required for each element rendered?

12 / 15

12. Arbitrary inputs of components in React are called

13 / 15

13. Which of the following method refers to the parent class in React.js?

14 / 15

14. What can you use to handle code splitting?

15 / 15

15. What is the output of the following code?

const make = 'Ford';
const model = 'Mustang';
const car = { make, model };
console.log(car);

Your score is

The average score is 17%

0%