Quiz
React Interview
Este quiz tem tipos de pergunta que abrem no player de sempre.
Perguntas do quiz (9)
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.- Asustaining
- Baccurate
- Ctemplate
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.- Amap
- Bfilter
- Creduce
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- ANew
- BAnother
- CPrevious
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- ACallback
- BSetter
- CMiddleware
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- Asetter
- Bcallback
- Cmiddleware
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.- Aname
- Bvalue
- ConChange
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).- Astate
- Bvalues
- Cconst
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).- Aprops
- Blet
- Ccallback
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).- Acomponent
- Bfunction
- Cmodule
Informações
- Descrição
- Informática y Comunicaciones Quiz sobre React Interview, criado por Orlando Flores em 15-05-2024.
- Autor
- Orlando Flores
- Idioma
- Español
- Visualizações
- 0
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz