Skip to content

Commit d5aaa72

Browse files
authored
doc: Add missing return statement (#7081)
1 parent d6df8eb commit d5aaa72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/rsc/server-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ import {createNoteAction} from './actions';
8282
function EmptyNote() {
8383
console.log(createNoteAction);
8484
// {$$typeof: Symbol.for("react.server.reference"), $$id: 'createNoteAction'}
85-
<button onClick={createNoteAction} />
85+
return <button onClick={createNoteAction} />
8686
}
8787
```
8888

0 commit comments

Comments
 (0)