diff --git a/app/global.d.ts b/app/global.d.ts index b4a84dc..97866ad 100644 --- a/app/global.d.ts +++ b/app/global.d.ts @@ -1,14 +1,14 @@ import {} from "hono"; type Head = { - title?: string; + title?: string; }; declare module "hono" { - interface ContextRenderer { - ( - content: string | Promise, - head?: Head, - ): Response | Promise; - } + interface ContextRenderer { + ( + content: string | Promise, + head?: Head, + ): Response | Promise; + } } diff --git a/app/islands/counter.tsx b/app/islands/counter.tsx index ad97711..87b3f26 100644 --- a/app/islands/counter.tsx +++ b/app/islands/counter.tsx @@ -1,13 +1,13 @@ import { useState } from "hono/jsx"; export default function Counter() { - const [count, setCount] = useState(0); - return ( -
-

{count}

- -
- ); + const [count, setCount] = useState(0); + return ( +
+

{count}

+ +
+ ); } diff --git a/app/routes/_renderer.tsx b/app/routes/_renderer.tsx index ae4e260..fc3ce8b 100644 --- a/app/routes/_renderer.tsx +++ b/app/routes/_renderer.tsx @@ -3,16 +3,16 @@ import { jsxRenderer } from "hono/jsx-renderer"; import { Script } from "honox/server"; export default jsxRenderer(({ children, title }) => { - return ( - - - - - {title} -