mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 20:01:57 +00:00
Fix error in second code snippet under Server Functions with Actions (#7414)
This commit is contained in:
@@ -137,7 +137,7 @@ function UpdateName() {
|
||||
return (
|
||||
<form action={submitAction}>
|
||||
<input type="text" name="name" disabled={isPending}/>
|
||||
{state.error && <span>Failed: {state.error}</span>}
|
||||
{error && <span>Failed: {error}</span>}
|
||||
</form>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user