ReactJS Basic Quiz- React Component
Post your answers!
- Which of the following is used in React.js to increase performance?
A. Virtual DOM
B. Original DOM
C. Both A and B
D. None of the above
2.Identify the one which is used to pass data to components from outside
A. Render with Arguments
B. setState
C. PropTypes
D.props
- In which language is React.js written?
A. Python
B. JavaScript
C. JAva
D. PHP
- Identify the command used to create a React app.
A. npm install create-react-app
B. npm install -g create-react-app
C. install -g create-react-app
D. None of the above
5.How many elements can a valid react component return?
A. 1
B. 2
C. 3
D. 4
6.A state in React.js is also known as?
A. The internal storage of the component
B. External storage of the component
C. Permanent Storage
D. All of the above
Have a wonderful time learning!
Athira| TA EdYoda
1 Like
1-virtual dom
2-setstate
3-javascript
4-npm install -g create-react-app
5-1
6-internal storage of the component
2 Likes
yes aman agarwal
is right in second it should be props right answer not state my answer is wrong but mam can u tell us the correct answer of question 4 we use command npm install create-react-app but in google it show some different answer like npm install -g create-react-app
1 Like
Right answers:
- Which of the following is used in React.js to increase performance?
A. Virtual DOM
B. Original DOM
C. Both A and B
D. None of the above
2.Identify the one which is used to pass data to components from outside
A. Render with Arguments
B. setState
C. PropTypes
D.props
- In which language is React.js written?
A. Python
B. JavaScript
C. JAva
D. PHP
- Identify the command used to create a React app.
A. npm install create-react-app
B. npm install -g create-react-app
C. install -g create-react-app
D. None of the above
5.How many elements can a valid react component return?
A. 1
B. 2
C. 3
D. 4
6.A state in React.js is also known as?
A. The internal storage of the component
B. External storage of the component
C. Permanent Storage
D. All of the above
1 Like