@sylphx/lens-fresh
v2.0.17
Published
Fresh (Deno/Preact) integration for Lens API framework
Downloads
3,230
Readme
@sylphx/lens-fresh
Deno Fresh integration for the Lens API framework.
Installation
deno add @sylphx/lens-freshUsage
// routes/index.tsx
import { fetchQuery } from "@sylphx/lens-fresh";
import { client } from "../client.ts";
export default async function Home() {
const user = await fetchQuery(client.user.get({ id: "1" }));
return <div>{user.name}</div>;
}License
MIT
Built with @sylphx/lens-client, @sylphx/lens-preact, and @sylphx/lens-server.
✨ Powered by Sylphx
