Fixed wrong highlight in Building your application > authentication > useFormStatus hook example (#65400)
Wrong line highlight for useFormStatus example in authentication module --------- Co-authored-by: samcx <sam@vercel.com>
This commit is contained in:
parent
93c0e64a36
commit
53c08431c5
1 changed files with 2 additions and 2 deletions
|
@ -290,7 +290,7 @@ export function SignupForm() {
|
|||
|
||||
You can also use the `useFormStatus()` hook to handle the pending state on form submission:
|
||||
|
||||
```tsx filename="app/ui/signup-form.tsx" highlight={7} switcher
|
||||
```tsx filename="app/ui/signup-form.tsx" highlight={6} switcher
|
||||
'use client'
|
||||
|
||||
import { useFormStatus, useFormState } from 'react-dom'
|
||||
|
@ -306,7 +306,7 @@ export function SignupButton() {
|
|||
}
|
||||
```
|
||||
|
||||
```jsx filename="app/ui/signup-form.js" highlight={7} switcher
|
||||
```jsx filename="app/ui/signup-form.js" highlight={6} switcher
|
||||
'use client'
|
||||
|
||||
import { useFormStatus, useFormState } from 'react-dom'
|
||||
|
|
Loading…
Reference in a new issue