Skip to content

Commit

Permalink
fix: error
Browse files Browse the repository at this point in the history
  • Loading branch information
yossydev committed Feb 23, 2024
1 parent a005255 commit a57b0c3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions app/client.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { createClient } from 'honox/client'
import { createClient } from "honox/client";

createClient()
createClient();
4 changes: 0 additions & 4 deletions app/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ type Head = {
};

declare module "hono" {
interface Env {
Variables: {};
Bindings: {};
}
interface ContextRenderer {
(
content: string | Promise<string>,
Expand Down
4 changes: 3 additions & 1 deletion app/islands/counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ export default function Counter() {
return (
<div>
<p>{count}</p>
<button onClick={() => setCount(count + 1)}>Increment</button>
<button type="button" onClick={() => setCount(count + 1)}>
Increment
</button>
</div>
);
}
7 changes: 3 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ export default defineConfig(({ mode }) => {
return {
plugins: [client()],
};
} else {
return {
plugins: [honox(), pages()],
};
}
return {
plugins: [honox(), pages()],
};
});

0 comments on commit a57b0c3

Please sign in to comment.