Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated/Migrated next-css example to the App Router #67942

Merged
merged 4 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions examples/next-css/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import "../style.css";

export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<body>{children}</body>
</html>
);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import HelloWorld from "../component/hello-world";
import HelloWorld from "./_component/hello-world";

export default function Home() {
return (
Expand Down
12 changes: 6 additions & 6 deletions examples/next-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
},
"dependencies": {
"next": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/node": "18.11.5",
"@types/react": "18.2.8",
"@types/react-dom": "18.0.7",
"typescript": "4.8.4"
"@types/node": "^20.14.11",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"typescript": "^5.5.3"
}
}
6 changes: 0 additions & 6 deletions examples/next-css/pages/_app.tsx

This file was deleted.

Loading