@uselite/countdown
v0.1.0
Published
```tsx import { useCountdown } from '@uselite/countdown';
Downloads
3
Readme
uselite countdown hook
import { useCountdown } from '@uselite/countdown';
export default function Home() {
const { days, hours, minutes, seconds } = useCountdown(new Date("Apr 1, 2023 00:00:00"));
return (
<div>
<p>Days: {days}</p>
<p>Hours: {hours}</p>
<p>Minutes: {minutes}</p>
<p>Seconds: {seconds}</p>
</div>
)
}