
React-Hooks
Authored by agustin kenny
Computers
Professional Development
Used 32+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
useState devuelve ...
una funcion
un objeto
un array
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cual es el analogo a mapStateToProps en Hooks?
useSelector()
useReducer()
useDispatch()
useState()
useEffect()
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
¿Qué hace el siguiente código? Seleccione la/s opción/es correcta/s
const [name, setName] = useState('Juana');
if(name === 'Juana'){ setName('Pedro'); } console.log(name);
Creo un estado local para un componente
El console.log me muestra 'Juana'
Creo un estado global para toda mi aplicación
El console.log me muestra 'Pedro'
Que buena pregunta
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Los Hooks fueron creados para trabajar con componentes de función
Verdadero
Falso
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
useDispatch() devuelve una referencia a la función de dispatch
Verdadero
Falso
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
El siguiente código ..
const name = useState(); name.setState('Juana');
Es correcto
Es incorrecto
e
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
¿Se puede ejecutar componentDidMount, componentDidUpdate, y componentWillUnmount en componentes de función?
No
Si
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?