From 4aaef70dcad84bf3437d7e251a02fa318b43fab9 Mon Sep 17 00:00:00 2001 From: Daniel Bayley Date: Wed, 6 Dec 2023 17:19:55 +0000 Subject: [PATCH] Fix Greeter example Surely a `div` should not result in a `span`? --- src/routes/docs/(qwik)/advanced/dollar/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/docs/(qwik)/advanced/dollar/index.mdx b/src/routes/docs/(qwik)/advanced/dollar/index.mdx index 954b767..39b0c09 100644 --- a/src/routes/docs/(qwik)/advanced/dollar/index.mdx +++ b/src/routes/docs/(qwik)/advanced/dollar/index.mdx @@ -294,7 +294,7 @@ const Greeter_onMount = () => { ``` ```tsx title="chunk-b.js" -const Greeter_onRender = () => Hello World!; +const Greeter_onRender = () =>
Hello World!
; ``` The above is for simple cases where the extracted function closure does not capture any variables. Let's look at a more complicated case where the extracted function closure lexically captures variables.