Frontendx
Frontendx
README.md
SOLUTION.md
main.tsxentry
App.tsx
App.css
index.html
vite.config.ts
Plugins
Installed
react@^19.2.0
react-dom@^19.2.0
Editor
React Timer
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.
Preview
Terminal
Test Results
React Timer
Build a timer with start, pause, reset, and configurable duration controls.