Skip to content

Commit

Permalink
test(react-server): test hydration mismatch error (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Apr 13, 2024
1 parent 0c21b85 commit cba3c64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use client";

export default function Page() {
return <div>{import.meta.env.SSR ? "server" : "client"}</div>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default function Layout(props: LayoutProps) {
"/test/error/browser",
"/test/error/use-client",
"/test/error/use-server",
"/test/error/hydration",
]}
/>
<div>{props.children}</div>
Expand Down

0 comments on commit cba3c64

Please sign in to comment.