Unverified Commit 162342c8 authored by Abdul Haseeb's avatar Abdul Haseeb Committed by GitHub

examples: fix hydration error on DOM element nesting (#66868)

Co-authored-by: 's avatarAbdul Haseeb <121640819+abdulhaseeb-codes@users.noreply.github.com>
Co-authored-by: 's avatarLee Robinson <me@leerob.io>
parent 8d6632cc
...@@ -13,12 +13,14 @@ export default async function IndexPage({ ...@@ -13,12 +13,14 @@ export default async function IndexPage({
return ( return (
<div> <div>
<LocaleSwitcher /> <LocaleSwitcher />
<p>Current locale: {lang}</p> <div>
<p> <p>Current locale: {lang}</p>
This text is rendered on the server:{" "} <p>
{dictionary["server-component"].welcome} This text is rendered on the server:{" "}
</p> {dictionary["server-component"].welcome}
<Counter dictionary={dictionary.counter} /> </p>
<Counter dictionary={dictionary.counter} />
</div>
</div> </div>
); );
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment