GoConqr has a new look! Let us know what you think.

Quiz

React Interview

Orlando Flores 9 questions

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (9)

  1. 1Why is using `.map()` better than just creating the components manually by typing them out?

    It makes our code more "self-[blank_start]sustaining[blank_end]" - not requiring additional changes whenever the data changes.
    1. Asustaining
    2. Baccurate
    3. Ctemplate
  2. 2Why is using `.[blank_start]map[blank_end]()` better than just creating the components manually by typing them out?

    It makes our code more "self-sustaining" - not requiring additional changes whenever the data changes.
    1. Amap
    2. Bfilter
    3. Creduce
  3. 3You have 2 options for what you can pass in to a state setter function (e.g. `setCount`). What are they?

    * [blank_start]New[blank_end] value of state (setCount(42))
    * Callback function - whatever the callback function returns === new value of state
    1. ANew
    2. BAnother
    3. CPrevious
  4. 4You have 2 options for what you can pass in to a state setter function (e.g. `setCount`). What are they?

    * New value of state (setCount(42))
    * [blank_start]Callback[blank_end] function - whatever the callback function returns === new value of state
    1. ACallback
    2. BSetter
    3. CMiddleware
  5. 5You have 2 options for what you can pass in to a state [blank_start]setter[blank_end] function (e.g. `setCount`). What are they?

    * New value of state (setCount(42))
    * Callback function - whatever the callback function returns === new value of state
    1. Asetter
    2. Bcallback
    3. Cmiddleware
  6. 6Which attribute in the form elements (value, name, onChange, etc.) should match the property name being held in state for that input?

    `[blank_start]name[blank_end]` property.
    1. Aname
    2. Bvalue
    3. ConChange
  7. 7When would you want to use [blank_start]state[blank_end] instead of props?

    Anytime you want a component to maintain some values from within the component. (And "remember" those values even when React re-renders the component).
    1. Astate
    2. Bvalues
    3. Cconst
  8. 8When would you want to use state instead of [blank_start]props[blank_end]?

    Anytime you want a component to maintain some values from within the component. (And "remember" those values even when React re-renders the component).
    1. Aprops
    2. Blet
    3. Ccallback
  9. 9When would you want to use state instead of props?

    Anytime you want a component to maintain some values from within the [blank_start]component[blank_end]. (And "remember" those values even when React re-renders the component).
    1. Acomponent
    2. Bfunction
    3. Cmodule

Information

Description
Informática y Comunicaciones Quiz on React Interview, created by Orlando Flores on 15/05/2024.
Language
Español
Views
0
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?