Unverified Commit 05374d3a authored by Andreas's avatar Andreas Committed by GitHub

docs: make example of passing down a Server Action more clear (#57972)

parent ee99c9f6
......@@ -76,9 +76,9 @@ In some cases, you might want to pass down a Server Action to a Client Component
```jsx filename="app/client-component.jsx"
'use client'
export default function ClientComponent({ myAction }) {
export default function ClientComponent({ updateItem }) {
return (
<form action={myAction}>
<form action={updateItem}>
<input type="text" name="name" />
<button type="submit">Update Item</button>
</form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment