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

Quiz: Optimistic UI

What is Optimistic UI for likes saved on a server?

Answer options

  • The screen changes right away, the save runs in the background, and on an error the state goes back
  • The screen changes only after the server responds
  • The button is locked until the page is refreshed
  • Likes are saved only in the browser memory, without a server

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