Question · Vibe coding with Claude Code course · Module 4: Instagram clone

Quiz: Filtering in the browser

The photos are already in the browser and you filter them on the spot, without a server. What should you use, according to the React documentation, so that the field does not slow down while the list is drawn?

Answer options

  • Debounce with a 1000 ms countdown
  • React.memo on the search field
  • Sending every letter to the server
  • useDeferredValue for the phrase from which you compute the list

You can check the correct answer by solving this task in the CodeWorlds game.