<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Keremcan Şeker</title>
    <description>The latest articles on DEV Community by Keremcan Şeker (@keremcanseker).</description>
    <link>https://dev.to/keremcanseker</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1467215%2F56e7c6e5-5b24-473c-9593-8375f6ced463.jpeg</url>
      <title>DEV Community: Keremcan Şeker</title>
      <link>https://dev.to/keremcanseker</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/keremcanseker"/>
    <language>en</language>
    <item>
      <title>There was an error while hydrating this Suspense boundary. Switched to client rendering. Next.js 14</title>
      <dc:creator>Keremcan Şeker</dc:creator>
      <pubDate>Fri, 03 May 2024 20:24:46 +0000</pubDate>
      <link>https://dev.to/keremcanseker/there-was-an-error-while-hydrating-this-suspense-boundary-switched-to-client-rendering-nextjs-14-me7</link>
      <guid>https://dev.to/keremcanseker/there-was-an-error-while-hydrating-this-suspense-boundary-switched-to-client-rendering-nextjs-14-me7</guid>
      <description>&lt;p&gt;The error also looks like this:&lt;/p&gt;

&lt;p&gt;Error: Text content does not match server-rendered HTML. See more info here: &lt;a href="https://nextjs.org/docs/messages/react-hydration-error"&gt;https://nextjs.org/docs/messages/react-hydration-error&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you look through the link you will se that it is mostly because you nested a &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; tag in another &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; tag or &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;But for some reason you checked and that this is not the case here is the solution.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export default function Component(){
  const [mounted, setMounted] = useState(false);

  useEffect(() =&amp;gt; {
    setMounted(true);
  }, []);

  if (!mounted) {
    return null;
  }


  return(
    &amp;lt;div&amp;gt;
      KeremG is the best
    &amp;lt;/div&amp;gt;
  )
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I spent quite a bit of time figuring this out, just use this mounting method, and you are good to go.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>nextjs</category>
      <category>fix</category>
      <category>react</category>
    </item>
  </channel>
</rss>
