From dea3596b0e520f28e384f35832620b085cab697f Mon Sep 17 00:00:00 2001 From: Erik Demaine Date: Thu, 5 Dec 2024 14:31:31 -0500 Subject: [PATCH] Add fragment to make example reactive (#976) --- src/routes/configuration/typescript.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/configuration/typescript.mdx b/src/routes/configuration/typescript.mdx index c726ac2dc..5c668f4d8 100644 --- a/src/routes/configuration/typescript.mdx +++ b/src/routes/configuration/typescript.mdx @@ -584,7 +584,9 @@ return
{user()?.name}
; return (
- {(nonNullishUser) => nonNullishUser().name} + {(nonNullishUser) => <> + {nonNullishUser().name} + }
); ```