1. Which method is used to render a React element?
A) React.mount()
B) ReactDOM.render()
C) render()
D) React.attach()
2. React considers everything as _______.
1. User interface
2. elements
3. components
4. Objects
5.
3. Which lifecycle method is called after a component is rendered?
A) componentWillMount()
B) componentDidMount()
C) render()
4. Everything in React is a _____________
1. Module
2. Component
3. Package
4. Class
5. How many elements does a react component return?
1. 2 Elements
2. 1 Element
3. Multiple Elements
4. None of These
6. What is ReactJS?
1. Server side Framework
2. User-interface framework
3. A Library for building interaction interfaces
4. None of These
7. Advantage of react ?
Ans: maintain easier
8. In React what is used to pass data to a component from outside?
setState
render with arguments
props
PropTypes
9.
10. In React what is used to pass data to a component from outside?
1. setState
2. render with arguments
3. props
11. Props are __________ into other components
1. Methods
2. Injected
3. Both 1 & 2
4. All of the above
12. What is a react.js in MVC?
1. Middleware
2. Controller
3. Model
4. Router
5.
13. React merges the object you provide into the current state using __________.
1. setState()
2. State()
Components
Objects
14. React keeps track of what items have changed, been added, or been removed from a list
using ________.
1. state
2. props
3. keys
4. ref
15. Life cycle methods of a components fall under following categories?
Mounting, Updating, Unmounting
What is React?
What is a component in React?
What is state in React?