Unverified Commit 5d3a0ea8 authored by oschleic's avatar oschleic Committed by GitHub

Update 05-error-handling.mdx (#71584)

Small docs import statement fix
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent 90db858b
......@@ -58,7 +58,7 @@ Then, you can pass your action to the `useFormState` hook and use the returned `
```tsx filename="app/ui/signup.tsx" highlight={11,18-20} switcher
'use client'
import { useFormState } from 'react'
import { useFormState } from 'react-dom'
import { createUser } from '@/app/actions'
const initialState = {
......@@ -83,7 +83,7 @@ export function Signup() {
```jsx filename="app/ui/signup.js" highlight={11,18-20} switcher
'use client'
import { useFormState } from 'react'
import { useFormState } from 'react-dom'
import { createUser } from '@/app/actions'
const initialState = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment