Skip to content

Commit

Permalink
Merge pull request #357 from ryoppippi/feature/update-nextjs
Browse files Browse the repository at this point in the history
feat(examples/nextjs): update to react19/next.js15
  • Loading branch information
ryoppippi authored Jan 10, 2025
2 parents 04fac5c + 79bead9 commit 66c0474
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions examples/nextjs/app/RandomData/client.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"use client";

import { useFormState } from 'react-dom'
import type { Entries } from 'type-fest';
import { type IMember, randomOnServer } from './actions';
import { useActionState } from "react";

export default function RandomDataClient({ initialData }: { initialData: IMember }) {
const [state, formAction] = useFormState(randomOnServer, initialData);
const [state, formAction] = useActionState(randomOnServer, initialData);

return (
<div>
Expand Down
16 changes: 10 additions & 6 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,29 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "bun -b next dev",
"dev": "bun -b next dev --turbopack",
"build": "bun -b next build",
"start": "bun -b next start",
"prepare": "ts-patch install && typia patch"
},
"dependencies": {
"next": "14.2.3",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"next": "15.1.4",
"react": "19.0.0",
"react-dom": "19.0.0"
},
"devDependencies": {
"@ryoppippi/unplugin-typia": "workspace:*",
"@types/node": "^20.17.9",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react": "19.0.4",
"@types/react-dom": "19.0.2",
"ts-patch": "^3.2.1",
"tslib": "^2.8.1",
"type-fest": "^4.30.0",
"typescript": "~5.7.2",
"typia": "^7.0.1"
},
"overrides": {
"@types/react": "19.0.4",
"@types/react-dom": "19.0.2"
}
}

0 comments on commit 66c0474

Please sign in to comment.