Frontendx
README.md
SOLUTION.md
main.tsxentry
App.tsx
App.css
index.html
vite.config.ts
Installed
react@^19.2.0
react-dom@^19.2.0

React Timer

easyuireacttimerHarnessUI Component

Description

Create a timer that counts down from a configurable duration, or counts up as a stopwatch. Provide start, pause, reset, and numeric duration controls. Display time as mm:ss and report when a countdown reaches zero.

Examples

Example 1

Set duration to 90, click Start, and see 01:30 count down once per second.

Constraints

  • Use a numeric duration input with a minimum of one second.
  • Update the display once per second.
  • Make all controls keyboard accessible.
Keep elapsed seconds in state and use one interval while running.
Test Results

React Timer

Build a timer with start, pause, reset, and configurable duration controls.