React JS Interview Questions.

2018-08-22  本文已影响20人  DiligentLeo
  1. We can go for keys when there is possibility that our user could change the data.
  1. JSX is typesafe.
  1. React merges the object you provide into the current state using __________.
  1. Arbitrary inputs of components are called __________.
    Keys
  1. _________ can be done while more than one element needs to be returned from a component.
    Abstraction
    Packing
    Insulation
  1. Which of the following needs to be updated to achieve dynamic UI updates?
  1. Lifecycle methods are mainly used ___________.
    To keep track of event history
    to enhance components
  1. State can be initialized when code is loaded or state can be set on event changes.
    False
  1. ref is used to refer a element / component returned by _______________.
    react()
  1. In JSX most of the errors can be caught during _________.
    Interpretation
    Execution
  1. Components cannot refer to other components in their output.
    True
  1. JSX is faster because it performs ____________ while compiling code to JavaScript
    Modification
    Compression
  1. If our elements are dynamic, react can keep track of the changes using keys.
  1. Function that does not change its results for the same set of inputs are called __________.
  1. What is the smallest building block of ReactJS?
    none of the options
    props
  1. An altered component may be uniquely identified with the help of ref.
    True
  1. React considers everything as _______.
    User interface
    elements
  1. React keeps track of what items have changed, been added, or been removed from a list using ________.
    state
    props
  1. React is mainly for building _____________.
    Database
    Connectivity
  1. React supports all the syntax of _________________.
  1. In React state can be accessed using ________.
    current
  1. How can we prevent default behavior in React?
    None of the options
    using revokeDefault()
  1. Invoked once, only on the client, after rendering occurs.
    componentWillUnmount
    shouldComponentUpdate
    componentWillMount
上一篇 下一篇

猜你喜欢

热点阅读