It will not be rendered at all
It will be rendered as enabled
It will be rendered as disabled
None of above
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
None
Object
Constructor
Data Object
Class
Asynchronous in nature
Synchronous in nature
Are asynchronous but can be made synchronous when required
None of the these
Initialization
State/Property Updates
Destruction
All of the above
The learning curve can be steep in React.js
The JSX in React.js makes code easy to read and write
The library of React.js is pretty large
React.js has only a view layer. We have put your code for Ajax requests, events and so on
8080
6060
3000
3030
3
1
4
2
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
5
“Key” prop is a way for React to identify a newly added item in a list and compare it during the “diffing” algorithm
It is one of the attributes in HTML
“Key” prop is used to look pretty, and there is no benefit whatsoever
None of these
Inherits
Create
Extends
By using the defaultValue property
By using the default property
By using the value property
It is assigned automatically
Using the Array.map() method
Using the <Each /> component
Using the reduce array method
With a for/while loop
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.
Module
Component
Package
Google
Facebook
Apple
HCL