+
+
@@ -39,36 +42,3 @@ export default function App() {
)
}
-
-function Header() {
- const isScrolled = useScrolled()
- return (
-
- )
-}
-
-function useScrolled() {
- const [isScrolled, setScrolled] = useState(
- typeof window !== "undefined" && window.scrollY > 0,
- )
-
- useEffect(() => {
- const handleScroll = () => {
- setScrolled(window.scrollY > 0)
- }
-
- window.addEventListener("scroll", handleScroll)
- return () => window.removeEventListener("scroll", handleScroll)
- }, [])
-
- return isScrolled
-}
diff --git a/packages/docs/app/routes/index.tsx b/packages/docs/app/routes/index.tsx
index fd656af..2776c58 100644
--- a/packages/docs/app/routes/index.tsx
+++ b/packages/docs/app/routes/index.tsx
@@ -9,7 +9,9 @@ export default function Index() {
const data: DocsJson = useLoaderData()
return (
- {JSON.stringify(data, undefined, 2)}
+
+ {JSON.stringify(data, undefined, 2)}
+
)
}