ls-deno/routes/countdown.tsx

12 lines
265 B
TypeScript
Raw Normal View History

2022-09-27 14:41:17 -05:00
import Countdown from "../islands/Countdown.tsx";
export default function Page() {
const date = new Date();
date.setSeconds(date.getSeconds() + 10);
return (
<p>
The big event is happening <Countdown target={date.toISOString()} />.
</p>
);
}