We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ef9662 commit 41dae30Copy full SHA for 41dae30
client.tsx
@@ -0,0 +1,7 @@
1
+import { useEffect, useState } from "react";
2
+
3
+export function NoSSR({ children }: { children: React.ReactElement }) {
4
+ const [state, setState] = useState<React.ReactElement | null>(null);
5
+ useEffect(() => setState(children), [children]);
6
+ return <>{state}</>;
7
+}
0 commit comments