Skip to content

Commit

Permalink
Fixed wrong highlight in Building your application > authentication >…
Browse files Browse the repository at this point in the history
… useFormStatus hook example (#65400)

Wrong line highlight for useFormStatus example in authentication module

---------

Co-authored-by: samcx <sam@vercel.com>
  • Loading branch information
nisabmohd and samcx authored May 6, 2024
1 parent 93c0e64 commit 53c0843
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit 53c0843

Please sign in to comment.