Skip to content

Commit

Permalink
docs: fix typos in Server Action in a Client Component example
Browse files Browse the repository at this point in the history
  • Loading branch information
liby committed Aug 16, 2024
1 parent be94eda commit 4d0abfa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export async function create() {}
import { create } from '@/app/actions'

export function Button() {
return <Button onClick={create} />
return <button onClick={create}>Create</button>
}
```

Expand All @@ -76,7 +76,7 @@ export function Button() {
import { create } from '@/app/actions'

export function Button() {
return <Button onClick={create} />
return <button onClick={create}>Create</button>
}
```

Expand Down

0 comments on commit 4d0abfa

Please sign in to comment.