SpinTheMic
Pro

Interview practice question

Making a like button feel instant

Frontend Engineering · React · Intermediate

Users complain that liking a post takes a second to show. How would you make it feel instant?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Optimistic update: change UI immediately.
  • Send request in background.
  • Roll back on failure with message.
  • useOptimistic or data library mutations.
  • Prevent double clicks.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics