Skip to content

Commit

Permalink
docs: Update nextjs install highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Jun 6, 2024
1 parent b1a8243 commit e715f64
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 41 deletions.
2 changes: 2 additions & 0 deletions docs/core/guides/ssr.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ export default function RootLayout({ children }) {
return (
<html>
<body>
// highlight-next-line
<DataProvider>
<header>Title</header>
<AsyncBoundary>{children}</AsyncBoundary>
<footer></footer>
// highlight-next-line
</DataProvider>
</body>
</html>
Expand Down
4 changes: 1 addition & 3 deletions docs/core/shared/_installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ export default function RootLayout({ children }) {
<body>
// highlight-next-line
<DataProvider>
<header>Title</header>
<AsyncBoundary>{children}</AsyncBoundary>
<footer></footer>
{children}
// highlight-next-line
</DataProvider>
</body>
Expand Down
74 changes: 36 additions & 38 deletions examples/nextjs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@data-client/rest": "^0.12.0",
"@data-client/ssr": "^0.12.0",
"@js-temporal/polyfill": "^0.4.4",
"@next/swc-wasm-nodejs": "^15.0.0-rc.0",
"@types/node": "20.14.2",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
Expand Down

0 comments on commit e715f64

Please sign in to comment.