React Questions

0 votes, 0 avg
89

React Questions

1 / 15

1. 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'));

2 / 15

2. How can you optimize performance for a function component that always renders the same way?

3 / 15

3. React Js is ______based architecture approach

4 / 15

4. What is a react.js in MVC?

5 / 15

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

6 / 15

6.  If you want to import just the Component from the React library, what syntax do you use?

7 / 15

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

8 / 15

8. Which of the following is NOT a rule for React Hooks?

9 / 15

9. Which of the following function is used to change the state of the React.js component?

10 / 15

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

11 / 15

11. Which of the following is the correct data flow sequence of flux concept?

12 / 15

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

13 / 15

13. Find the bug in this code :

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

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. Regarding JSX attributes, Which of the following statement is true?

Your score is

The average score is 40%

0%