1
Fork 0
today/source/app.tsx

18 lines
392 B
TypeScript
Raw Normal View History

2023-05-30 10:10:17 +00:00
import {Component} from "preact";
2023-06-20 09:41:33 +00:00
import {BigDate, Calendar} from "./components/exports.js";
import {DateWrapper} from "./date/date.js";
2023-05-30 10:10:17 +00:00
export class App extends Component {
render() {
2023-06-20 09:41:33 +00:00
const today = new DateWrapper(new Date());
2023-05-30 10:10:17 +00:00
return (
<>
<p class="subtitle">Today is:</p>
2023-06-20 09:41:33 +00:00
<BigDate today={today} />
<Calendar today={today} />
2023-05-30 10:10:17 +00:00
</>
);
}
}