From f2a409d3b78533056ff1dd7f304908ed07d2e9e6 Mon Sep 17 00:00:00 2001 From: Jean-philippe Martel <41765025+Kampouse@users.noreply.github.com> Date: Mon, 25 Dec 2023 13:59:54 -0500 Subject: [PATCH] docs: update h3 example (#147) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f4dc72..c4e6859 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ import { createApp, eventHandler } from "h3"; export const app = createApp(); -app.use("/", () => "Hello world!"); +app.use("/", eventHandler(() => "Hello world!"); ``` or use npx to invoke `listhen` command: