Skip to content

Commit

Permalink
apps/docs: add /feat1 page
Browse files Browse the repository at this point in the history
  • Loading branch information
qiushi1511 committed Oct 21, 2024
1 parent eb7412e commit 349a83b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions apps/docs/app/feat1/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"use client";

import { useState } from "react";

function ToggleContent({ children }: { children?: React.ReactNode }) {
const [show, setShow] = useState(false);
return (
<div>
<button onClick={() => setShow(!show)}>Toggle</button>
{show ? children : null}
</div>
);
}

export default function Page() {
return (
<>
<h1>Feat 1</h1>

<ToggleContent>
<p>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Dolorem,
voluptatem mollitia suscipit odio eos fugiat eum in molestias itaque
ex magni fuga deleniti dolores. Accusamus blanditiis reiciendis ab
quibusdam saepe.
</p>
</ToggleContent>
</>
);
}

0 comments on commit 349a83b

Please sign in to comment.