Well done!
You have completed Stateful Components and the Effect Hook Review!
Quiz Question 1 of 6
In the code snippet below when will React run the console.log
statement?
const Message = () => {
const [name, setName] = useState();
useEffect(() => {
console.log("hello " + name);
}, []);
return (...);
}
Choose the correct answer below: