From 4b4c9b58c887f9cb7cfb54b75714f237b8de8c8e Mon Sep 17 00:00:00 2001 From: Mike Dyer <61215321+InfiniteCodeMonkeys@users.noreply.github.com> Date: Sun, 19 Oct 2025 06:11:42 -0600 Subject: [PATCH] Fix grammatical errors in updating data documentation --- docs/01-app/01-getting-started/08-updating-data.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/01-app/01-getting-started/08-updating-data.mdx b/docs/01-app/01-getting-started/08-updating-data.mdx index ccefe259fdb60f..9c98644f1883a3 100644 --- a/docs/01-app/01-getting-started/08-updating-data.mdx +++ b/docs/01-app/01-getting-started/08-updating-data.mdx @@ -14,7 +14,7 @@ You can update data in Next.js using React's [Server Functions](https://react.de ## What are Server Functions? -A **Server Function** is an asynchronous function that runs on the server. They can be called from client through a network request, which is why they must be asynchronous. +A **Server Function** is an asynchronous function that runs on the server. They can be called from the client through a network request, which is why they must be asynchronous. In an `action` or mutation context, they are also called **Server Actions**. @@ -176,7 +176,7 @@ There are two main ways you can invoke a Server Function: ### Forms -React extends the HTML [`
`](https://react.dev/reference/react-dom/components/form) element to allow Server Function to be invoked with the HTML `action` prop. +React extends the HTML [``](https://react.dev/reference/react-dom/components/form) element to allow a Server Function to be invoked with the HTML `action` prop. When invoked in a form, the function automatically receives the [`FormData`](https://developer.mozilla.org/docs/Web/API/FormData/FormData) object. You can extract the data using the native [`FormData` methods](https://developer.mozilla.org/en-US/docs/Web/API/FormData#instance_methods):