Skip to content

Commit 2294874

Browse files
authored
chore(singular): replace Actions with Action (#1382)
1 parent 7f0f464 commit 2294874

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/reference/react-dom/hooks/useFormState.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function StatefulForm({}) {
5151

5252
form state 是一个只在表单被提交触发 action 后才会被更新的值。如果该表单没有被提交,该值会保持传入的初始值不变。
5353

54-
如果配合 Server Actions 一起使用,`useFormState` 允许与表单交互的服务器的返回值在 hydration 完成前显示。
54+
如果配合 Server Action 一起使用,`useFormState` 允许与表单交互的服务器的返回值在 hydration 完成前显示。
5555

5656
[请参阅下方更多示例](#usage)
5757

@@ -117,7 +117,7 @@ function action(currentState, formData) {
117117

118118
#### 展示表单错误 {/*display-form-errors*/}
119119

120-
将 action 包裹进 `useFormState` 即可展示诸如错误信息或 Server Actions 返回的 toast 等信息。
120+
将 action 包裹进 `useFormState` 即可展示诸如错误信息或 Server Action 返回的 toast 等信息。
121121

122122
<Sandpack>
123123

0 commit comments

Comments
 (0)