eno/example/app.tsx

29 lines
829 B
TypeScript

import TWPreTail from "https://esm.sh/@twind/preset-tailwind@1.1.4";
import TWPreAuto from "https://esm.sh/@twind/preset-autoprefix@1.0.7";
import React from "react";
import Component from "./deep/component.tsx";
import * as Iso from "@eno/iso";
export default ()=>
{
console.log(Iso.Meta);
const [countGet, countSet] = React.useState(1);
return <div class="p-4 font-sans">
<Iso.Metas title="Main Page!"/>
<h1 class="my-2 font(bold serif) text(2xl)">Title!!</h1>
<h2>subtitle</h2>
<Component/>
<Iso.Switch>
<Iso.Case value="page/:slug">
About Us
</Iso.Case>
<Iso.Case value="lol/idk">lol/idk</Iso.Case>
</Iso.Switch>
</div>;
};
export const CSS = {
presets: [TWPreTail(), TWPreAuto()],
hash:false
};