Premium
Vue Like Button (Toggle + Counter)
Challenge summary
Create a Vue 3 Like button with a toggle state and visible counter. Clicking should increment on like, decrement on unlike, and never allow the count to drop below zero.
What you'll practice
- Render a Like button and a like counter.
- The counter must never go below 0.
- Update button styling based on liked state.
- If the counter is 0, unliking should not make it negative.
- The UI should immediately reflect the current state.
What Premium unlocks
Premium unlocks the runnable workspace, behavioral checks, implementation walkthrough, and edge-case discussion. It also runs as an Interview Pressure Mode, in rounds that add requirements the way an interviewer does.
Free related practice
Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.
Premium is $24 a month or $99 a year, less in many countries.