File tree Expand file tree Collapse file tree 3 files changed +23
-11
lines changed Expand file tree Collapse file tree 3 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change @@ -64,11 +64,23 @@ _./app/page.tsx_
6464``` jsx
6565import 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
7486Run ` start ` :
You can’t perform that action at this time.
0 commit comments