React Questions

0 votes, 0 avg
32

React Questions

1 / 15

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

2 / 15

2. Which operator can be used to conditionally render a React component?

3 / 15

3. Props are __________ into other components

4 / 15

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

5 / 15

5. React Js is ______based architecture approach

6 / 15

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

7 / 15

7. What will happen if you render an input element with disabled = {false}?

8 / 15

8. What function allows you to render React content in an HTML page?

9 / 15

9. What is React.js?

10 / 15

10.  What are the two ways to handle data in React?

11 / 15

11. How many stages are there in React js life cycle

12 / 15

12. Using object literal enhancement, you can put values back into an object. When you log person to the console, what is the output?

const name = 'Rachel';
const age = 31;
const person = { name, age };
console.log(person);

13 / 15

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

14 / 15

14. What is the difference between the click behaviors of these two buttons (assuming that this.handleClick is bound correctly)?

A. < button onClick={this.handleClick} > Click Me < /button >  < /code> < /pre >

B. < button onClick={event => this.handleClick(event)}> Click Me < /button > 

15 / 15

15. For controlled components in react

Your score is

The average score is 30%

0%