Question · Vibe coding with Claude Code course · Module 4: Instagram clone
Quiz: useMemo vs useCallback
How does useMemo differ from useCallback?
Answer options
- useMemo works only on the server, and useCallback only in the browser
- Not at all, they are two names of the same hook
- useMemo remembers the result of a calculation, and useCallback the function itself
- useMemo draws a list, and useCallback loads images
You can check the correct answer by solving this task in the CodeWorlds game.