From 558e2e07f4bc48cded18a5070e44bfa7a9373e82 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 18 Oct 2024 21:04:41 +0800 Subject: [PATCH] Add conditional to the code --- apps/docs/app/about.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/docs/app/about.tsx b/apps/docs/app/about.tsx index 8449be6..2d364f9 100644 --- a/apps/docs/app/about.tsx +++ b/apps/docs/app/about.tsx @@ -1,3 +1,12 @@ +function PageContent({ n }: { n: number }) { + return n < 100 ?

Less than 100

:

100 or more

; +} + export default function Page() { - return

About

; + return ( + <> +

About

; + + + ); }