ReactJS MCQ

ReactJS Core Concepts MCQ

ReactJS Core Concepts MCQ

Online Tests

Related Content

ReactJS Tutorial

ReactJS MCQ Set 2

  1. The state in react can be updated by call to setState method. These calls are

    A.

    B.

    C.

    D.

  2. As soon as the state of react component is changed, component will

    A.

    B.

    C.

    D.

  3. React Lifecycle method static getDerivedSateFromProps(props , state) is called when ____

    A.

    B.

    C.

    D.

  4. componentDidMount lifecycle method is called when____

    A.

    B.

    C.

    D.

  5. Keys are given to a list of elements in react. These keys should beĀ 

    A.

    B.

    C.

    D.

  6. For controlled components in react

    A.

    B.

    C.

    D.

  7. For uncontrolled components in react

    A.

    B.

    C.

    D.

  8. To upload a file from react component, A developer will require to write

    A.

    B.

    C.

    D.

  9. Ref in react component is used to assign reference to DOM elements. Ref can be created by

    A.

    B.

    C.

    D.


Please Share this page
Like every other website we use cookies. By using our site you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. Learn more Got it!