Skip to content

Commit d5ca28f

Browse files
committed
update boilerplate
1 parent 5c99637 commit d5ca28f

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

04-frameworks/08-nextjs/00-boilerplate/api-server/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"author": "Lemoncode",
1010
"license": "MIT",
1111
"dependencies": {
12-
"@hono/node-server": "^1.12.2",
13-
"hono": "^4.5.11"
12+
"@hono/node-server": "^1.13.8",
13+
"hono": "^4.6.20"
1414
},
1515
"devDependencies": {
16-
"tsx": "^4.19.0"
16+
"tsx": "^4.19.2"
1717
}
1818
}

04-frameworks/08-nextjs/00-boilerplate/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
"author": "Lemoncode",
1010
"license": "MIT",
1111
"dependencies": {
12-
"react": "^18.3.1",
13-
"react-dom": "^18.3.1"
12+
"react": "^19.0.0",
13+
"react-dom": "^19.0.0"
1414
},
1515
"devDependencies": {
16-
"@types/react": "^18.3.5",
17-
"@types/react-dom": "^18.3.0",
18-
"typescript": "^5.6.2"
16+
"@types/react": "^19.0.8",
17+
"@types/react-dom": "^19.0.3",
18+
"typescript": "^5.7.3"
1919
}
2020
}

04-frameworks/08-nextjs/01-config/README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,23 @@ _./app/page.tsx_
6464
```jsx
6565
import React from 'react';
6666

67-
const RootPage = () => {
68-
return <h2>Hello from Nextjs</h2>;
67+
interface Props {
68+
children: React.ReactNode;
69+
}
70+
71+
const RootLayout = (props: Props) => {
72+
const { children } = props;
73+
return (
74+
<html lang="en">
75+
<body>
76+
<main>{children}</main>
77+
</body>
78+
</html>
79+
);
6980
};
7081

71-
export default RootPage;
82+
export default RootLayout;
83+
7284
```
7385

7486
Run `start`:

0 commit comments

Comments
 (0)