A lightweight React countdown timer component with clean UI and error handling
npm install react-set-timerbash
npm install react-set-timer
`
Usage
`jsx
import React from 'react';
import Timer from 'react-set-timer';
function App() {
return (
time={0.25}
start={true}
stop={false}
questionsRemaining={5}
/>
);
}
export default App;
`
Props
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| time | number | 1 | Timer duration in minutes (max 300) |
| start | boolean | false | Start the timer |
| stop | boolean | false | Stop the timer |
| questionsRemaining | number | 1` | Number of questions/tasks remaining (for tooltip) |