The state of the component is updated
The component is created for the first time
All of above
None
Babel is a Transpolar
Babel is a Compiler
None of above
render Component
Setinitial Component
render
All of the above
The source of truth is a component state
The source of truth can be anything
The source of truth is DOM
It will re-render the component
It can be created again from scratch
It will do nothing; you have to call render method to render the component again
Asynchronous in nature
Synchronous in nature
Are asynchronous but can be made synchronous when required
None of the these
8080
6060
3000
3030
Access the previous state before the set State operation
Replace the state completely instead of the default merge action
Invoke code after the set State operation is done
npm install -f create-react-app
npm install -g create-react-app
npm install create-react-app
install -g create-react-app
2
1
4
5
ReactDOM.destroy()
ReactDOM.hydrate()
ReactDOM.createPortal()
ReactDOM.findDOMNode()
Synchronous in nature.
Asynchronous in nature.
Are asynchronous but can be made synchronous when required.
None of the above.
Unique in the DOM.
Unique among the siblings only.
Do not require to be unique.
JSX
Props
Flux
DOM
Component is created for the first time
State of the component is updated
Both A and B
None of the above
PropTypes
setState
render with arguments
props
Keys
Elements
Ref
this.state
this.values
this.getState()
this.prototype.stateValue
Only function component can have life cycle
Only class components can have life cycle
Both type of components can have life cycle
willComponentUpdate
shouldComponentUpdate
componentDidUpdate
componentDidMount