revite/src/app.tsx

18 lines
386 B
TypeScript
Raw Normal View History

import { Text } from "preact-i18n";
import Context from "./context";
import dayjs from "dayjs";
import localeData from 'dayjs/plugin/localeData';
dayjs.extend(localeData)
2021-06-18 07:05:01 -04:00
export function App() {
2021-06-18 10:57:08 -04:00
return (
<Context>
<h1><Text id="general.about" /></h1>
<h3>{ dayjs.locale() }</h3>
<h2>{ dayjs.months() }</h2>
</Context>
2021-06-18 10:57:08 -04:00
);
2021-06-18 07:05:01 -04:00
}