Consider the following React component… function HappyBirthd…
Consider the following React component… function HappyBirthday() { const [age, setAge] = useState(18); const celebrate = useCallback(() => { setAge(age + 1); }, []); return Happy Birthday! } What will be the value of age after the “Happy Birthday” button is clicked?
Read DetailsConsider the following React component… function DataFetcher…
Consider the following React component… function DataFetcher() { useEffect(() => { console.log(“A”); fetch(“https://example.com/data”) .then(r => { console.log(“B”); }); }, []) console.log(“C”); return Hello world!} Assuming the fetch request returns successfully, what are the first 3 letters, in order, printed to the console?
Read DetailsYou are designing a website with buttons for users to submit…
You are designing a website with buttons for users to submit forms. You want to ensure the buttons have proper affordances. Is the following statement true or false? “Using a raised, clickable button design with a shadow gives users a clear affordance that the button is interactive and can be clicked.”
Read Details