Question · Vibe coding with Claude Code course · Module 5: Reddit clone
Quiz: When to use useMemo when filtering
According to the lesson, when is it worth wrapping post filtering in useMemo?
Answer options
- Always, every filter call in a component should have useMemo
- When the filter reads the phrase from the page address
- Never, because useMemo does not work in client components
- When a measurement, for example with console.time, shows the calculation is expensive
You can check the correct answer by solving this task in the CodeWorlds game.