We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c57d4a commit 26fc8bcCopy full SHA for 26fc8bc
1 file changed
src/content/reference/react-dom/hydrate.md
@@ -178,10 +178,6 @@ import { useState, useEffect } from "react";
178
export default function App() {
179
const [isClient, setIsClient] = useState(() => typeof window !== "undefined");
180
181
- useEffect(() => {
182
- setIsClient(true);
183
- }, []);
184
-
185
return (
186
<h1>
187
{isClient ? 'Is Client' : 'Is Server'}
0 commit comments