Skip to content

Commit

Permalink
Update README.mdx with correct function name
Browse files Browse the repository at this point in the history
  • Loading branch information
kenrett authored Aug 14, 2024
1 parent 6b5059a commit a1c0d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/05.actions/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ needs to run (the form data).
```js
import * as RSC from 'react-server-dom-esm/client'

function callAction(id, args) {
function callServer(id, args) {
const fetchPromise = fetch(`/action${getGlobalLocation()}`, {
method: 'POST',
headers: { 'rsc-action': id },
Expand Down

0 comments on commit a1c0d36

Please sign in to comment.