React JS MCQ For Freshers & Experienced

  • Question 1) What kind of component import React from 'react' is?
  • Question 2) What is ReactJS?
  • Question 3) Which of following is used to pass data to a component from outside?
  • Question 4) What function allows you to render React content in an HTML page?
  • Question 5) React.js was created by
  • Question 6) Arbitrary inputs of components in React are called
  • Question 7) What is state in React?
  • Question 8) For what "webpack" command is used?
  • Question 9) What create-react-app command do
  • Question 10) How many elements does a react component return?
  • Sharad Jaiswal
  • 20th Feb, 2020
  • 711 Followers

React JS MCQ
Updated ON

20th Feb, 2020

No. of Questions

10

Posted In

MCQ

Author

Sharad Jaiswal

React JS Quiz : Practice Multiple Choice Questions on React JS

Q1. What kind of component import React from 'react' is?

  • stateless component
  • statefull component
  • pure component
View Answer
import React from 'react' is a stateless component.

Q2. What is ReactJS?

  • User-interface framework
  • Server-side Framework
  • Both server & Client
View Answer
ReactJS is User-interface framework.

Q3. Which of following is used to pass data to a component from outside?

  • PropTypes
  • setState
  • render with arguments
  • props
View Answer
Props are used to pass data to a component from outside

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

  • React.mount()
  • ReactDOM.start()
  • ReactDOM.render()
  • React.render()
View Answer
ReactDOM.render() function allows you to render React content in an HTML page

Q5. React.js was created by

  • Jordan Walke
  • Jordan mike
  • Tim Lee
  • Jordan Lee
View Answer
React.js was created by Jordan Walke

Q6. Arbitrary inputs of components in React are called

  • Keys
  • Props
  • Elements
  • Ref
View Answer
Arbitrary inputs of components in React are called props.

Q7. What is state in React?

  • A persistant storage.
  • An internal data store (object) of a component.
View Answer
State in React is an internal data store (object) of a component.

Q8. For what "webpack" command is used?

  • Transpiles all the Javascript down into one file
  • Runs react local development server.
  • A module bundler
View Answer
Webpack is a module bundler

Q9. What create-react-app command do

  • Update a react app
  • Creates new react app
  • install dependencies
View Answer
create-react-app command is used to create a new react app

Q10. How many elements does a react component return?

  • 1
  • 2
  • Multiple Elements
View Answer
A react component can return Multiple Elements

About Author :

  • Author of React JS MCQ

    Sharad Jaiswal

    Sharad Jaiswal is Sr. Web Developer from Noida area. He have rich experience in PHP, Angular Js, React, javascript and Node .If you any query or project on these programming you can drop your enquiry in comment section.

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.