Build a like button with optimistic update
EasyP3Build
Build a like button in React that updates optimistically when clicked and rolls back if the server rejects the change.
Time box: 30 to 45 minutes. Simulate the API with a function that resolves or rejects after a delay.
Requirements
0 / 6Stretch goals
0 / 3Only after every requirement works.
Hints
Workspace
Your files are saved in this browser as you type.
When every requirement works, mark it complete to count it as solved.
Solution notes
How a strong candidate structures it, and what interviewers check.
Saved automatically