DEV Community

skptricks
skptricks

Posted on

React JS Quiz - React JS Interview Questions

Post Link : https://www.skptricks.com/2018/07/react-js-quiz-react-js-interview.html

Today we are going to provide basic react js interview question with answer, This quiz series helps to build more understanding on reactjs and java script library for building user interfaces.

  1. We can go for keys when there is possibility that our user could change the data.
    Keys
    ref
    both
    none of above

  2. JSX is typesafe.
    True
    False

  3. React merges the object you provide into the current state using __________.
    setState()
    State()

  4. Arbitrary inputs of components are called __________.
    Keys
    Props
    Elements
    Ref

  5. _________ can be done while more than one element needs to be returned from a component.
    Abstraction
    Packing
    Insulation
    Wrapping

  6. Which of the following needs to be updated to achieve dynamic UI updates?
    State
    Props

  7. Lifecycle methods are mainly used ___________.
    To keep track of event history
    to enhance components
    freeup resources
    none of the options

click to check out solution

Top comments (2)

Collapse
 
francisco profile image
Francisco M. Delgado

The solution isn't an underscore on the first question.

Collapse
 
nikhildevloper profile image
Nikhil-devloper

The first question needs to update.