Skip to content

Commit 6da4963

Browse files
committed
feat: add first decorator example
1 parent ea57ee7 commit 6da4963

78 files changed

Lines changed: 37431 additions & 163 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.
File renamed without changes.
File renamed without changes.

next.js/server-actions/app/UnComponente.tsx renamed to next.js/server-actions/client-component/app/UnComponente.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { useState } from "react"
44

55
export default function UnComponente({ ...props }) {
6-
const [valore, setValore] = useState(null)
6+
const [valore, setValore] = useState(0)
77

88
return (
99
<button onClick={() => {
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
'use server'
22

33
export default async function create() {
4-
// 'use server'
5-
64
console.log('dentro alla server action')
7-
85
return 44;
96
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

next.js/server-actions/app/page.tsx renamed to next.js/server-actions/client-component/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ export default function Home() {
99
<UnComponente create={create}></UnComponente>
1010
</div>
1111
)
12-
}
12+
}
File renamed without changes.

0 commit comments

Comments
 (0)