Skip to content

Commit

Permalink
examples: fix hydration error on DOM element nesting (vercel#66868)
Browse files Browse the repository at this point in the history
Co-authored-by: Abdul Haseeb <[email protected]>
Co-authored-by: Lee Robinson <[email protected]>
  • Loading branch information
3 people authored Aug 15, 2024
1 parent 8d6632c commit 162342c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions examples/app-dir-i18n-routing/app/[lang]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ export default async function IndexPage({
return (
<div>
<LocaleSwitcher />
<p>Current locale: {lang}</p>
<p>
This text is rendered on the server:{" "}
{dictionary["server-component"].welcome}
</p>
<Counter dictionary={dictionary.counter} />
<div>
<p>Current locale: {lang}</p>
<p>
This text is rendered on the server:{" "}
{dictionary["server-component"].welcome}
</p>
<Counter dictionary={dictionary.counter} />
</div>
</div>
);
}

0 comments on commit 162342c

Please sign in to comment.