All challenges
UI · Frontend challenge· Frontend UI

Counter

easy
15m
#ui#react#frontend#state#events

Build a Counter component.

Requirements

  • Show the current count (starts at 0).
  • + increments, decrements, Reset sets it back to 0.
  • The count must never go below 0.

Build it in App.js; the preview updates live.