Skip to content

Commit

Permalink
docs: update SSR/Nextjs doc imports (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
my-slab authored Jul 1, 2024
1 parent 32b26ac commit 35f6635
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docs/framework/react/guides/ssr.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,9 @@ Finally, we'll use `someAction` in our client-side form component.
'use client'

import { useActionState } from 'react'
import { initialFormState } from '@tanstack/react-form/nextjs'
// Notice the import is from `react-form`, not `react-form/nextjs`
import {
initialFormState,
mergeForm,
useForm,
useTransform,
} from '@tanstack/react-form'
import { mergeForm, useForm, useTransform } from '@tanstack/react-form'
import someAction from './action'
import { formOpts } from './shared-code'

Expand Down

0 comments on commit 35f6635

Please sign in to comment.