Bienvenido al test sobre React Para comenzar pulsa sobre el botón de Iniciar.Dispones de 15 minutos para responder el mayor número posible de respuestas correctas.Las preguntas tendrán una única respuesta correcta.Si has terminado el test antes del tiempo establecido, pulsa el botón Finalizar para enviarlo. Para comenzar el test, completa tus datos y pulsa el botón "Siguiente" Nombre completo Email 1 {person: {name: "Rachel", age: 31}} {name: "Rachel", age: 31} {person: "Rachel", person: 31}} {{name: "Rachel", age: 31}} 2 all of them any that have not changed any that have changed child props 3 undefined Mouse Cat Horse 4 where the root component is where to call the function where the React element should be added to the DOM where to create a new JavaScript file 5 const [first] = ["cooking", "art", "history"] const [, first]["cooking", "art", "history"] const first = ["cooking", "art", "history"] const [] = ["cooking", "art", "history"] 6 spinner fallback loading lazy 7 never when isLoggedIn is true when the Hello function is called when a user logs in 8 Button B will not fire the handler this.handleClick successfully Button A will not have access to the event object on click of the button Button A will not fire the handler this.handleClick successfully There is no difference 9 componentDidUpdate componentWillUnmount render componentDidMount 10 Surround the h1 in a div. Move the h1 to another component. Add a render function. Change the curly braces to parentheses or add a return statement before the h1 tag. 11 props.bind(handleClick); this.handleClick.bind(); this.handleClick = this.handleClick.bind(this); this.handleClick.bind(this); 12 a JSX code string a set value a dynamic key a computed property name 13 String literals must be surrounded by quotes. React components cannot be defined using functions. The component needs to use the return keyword. React does not allow components to return more than one element. 14 useEffect(function updateTitle() { name + ' ' + lastname; }); useEffect(function updateTitle() { title = name + ' ' + lastname; }); useEffect(() => { title = name + ' ' + lastname; }); useEffect(function updateTitle() { document.title = name + ' ' + lastname; }); 15 It will execute the code inside the function, but only after waiting to ensure that no other component is accessing the name variable. It will cause an infinite loop. It will cause an error immediately. It will update the value of name once and not run again until name is changed from the outside. 16 section component div h1 17 useEffect(() => { setDone(true); }); useEffect(() => { setDone(true); }, []); useEffect(() => { setDone(true); }, [done, setDone]); useEffect(() => { setDone(true); }, [setDone]); 18 Replace the object with an array. Wrap the object in parentheses. Add a return statement before the first curly brace. Call the function from another file. 19 Button B will not fire the handler this.handleClick successfully. Button A will not fire the handler this.handleClick successfully. Button A will not have access to the event object on click of the button. There is no difference. 20 the App component the page the element to render the current state 3 out of 2