Skip to content

Commit

Permalink
Add conditional to the code
Browse files Browse the repository at this point in the history
  • Loading branch information
qiushi1511 committed Oct 18, 2024
1 parent 5ea6e3a commit 558e2e0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion apps/docs/app/about.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
function PageContent({ n }: { n: number }) {
return n < 100 ? <h1>Less than 100</h1> : <h1>100 or more</h1>;
}

export default function Page() {
return <h1>About</h1>;
return (
<>
<h1>About</h1>;
<PageContent n={100} />
</>
);
}

0 comments on commit 558e2e0

Please sign in to comment.