Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions examples/react/array/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useForm } from '@tanstack/react-form'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'
import ReactDOM from 'react-dom/client'
import './index.css'
import { useMemo, useRef, useState } from 'react'
import { StrictMode, useMemo, useRef, useState } from 'react'

function ArrayForm({ items }: { items: Array<string> }) {
const form = useForm({
Expand Down Expand Up @@ -120,4 +120,8 @@ function App() {
)
}

ReactDOM.createRoot(document.getElementById('root')!).render(<App />)
ReactDOM.createRoot(document.getElementById('root')!).render(
<StrictMode>
<App />
</StrictMode>,
)
7 changes: 6 additions & 1 deletion examples/react/basic-splitting-form/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as React from 'react'
import { TanStackDevtools } from '@tanstack/react-devtools'
import { useForm } from '@tanstack/react-form'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'
Expand Down Expand Up @@ -58,4 +59,8 @@ function App() {
)
}

ReactDOM.createRoot(document.getElementById('root')!).render(<App />)
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>,
)
7 changes: 6 additions & 1 deletion examples/react/basic/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as React from 'react'
import { TanStackDevtools } from '@tanstack/react-devtools'
import { useForm } from '@tanstack/react-form'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'
Expand Down Expand Up @@ -139,4 +140,8 @@ function App() {
)
}

ReactDOM.createRoot(document.getElementById('root')!).render(<App />)
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>,
)
2 changes: 2 additions & 0 deletions examples/react/compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.10.5",
"@tanstack/react-form": "^2.0.0-alpha.2",
"@tanstack/react-form-devtools": "^1.0.0-alpha.2",
"react": "19.2.8",
"react-dom": "19.2.8"
},
Expand Down
7 changes: 7 additions & 0 deletions examples/react/compiler/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import * as React from 'react'
import { createRoot } from 'react-dom/client'

import { TanStackDevtools } from '@tanstack/react-devtools'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { useForm } from '@tanstack/react-form'

import type { AnyFieldApi } from '@tanstack/react-form'
Expand Down Expand Up @@ -131,5 +133,10 @@ const rootElement = document.getElementById('root')!
createRoot(rootElement).render(
<React.StrictMode>
<App />

<TanStackDevtools
config={{ hideUntilHover: false }}
plugins={[formDevtoolsPlugin()]}
/>
</React.StrictMode>,
)
7 changes: 6 additions & 1 deletion examples/react/expo/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { StrictMode, createElement } from 'react'
import { registerRootComponent } from 'expo'

import App from './app/index'

registerRootComponent(App)
function Root() {
return createElement(StrictMode, null, createElement(App))
}

registerRootComponent(Root)
7 changes: 6 additions & 1 deletion examples/react/field-groups/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as React from 'react'
import { TanStackDevtools } from '@tanstack/react-devtools'
import { useForm } from '@tanstack/react-form'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'
Expand Down Expand Up @@ -143,4 +144,8 @@ function App() {
)
}

ReactDOM.createRoot(document.getElementById('root')!).render(<App />)
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>,
)
2 changes: 1 addition & 1 deletion examples/react/large-form/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ createRoot(rootElement).render(
<App />

<TanStackDevtools
config={{ hideUntilHover: true }}
config={{ hideUntilHover: false }}
plugins={[formDevtoolsPlugin()]}
/>
</React.StrictMode>,
Expand Down
2 changes: 1 addition & 1 deletion examples/react/multi-step-wizard/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ createRoot(rootElement).render(
<App />

<TanStackDevtools
config={{ hideUntilHover: true }}
config={{ hideUntilHover: false }}
plugins={[formDevtoolsPlugin()]}
/>
</React.StrictMode>,
Expand Down
2 changes: 2 additions & 0 deletions examples/react/next-server-actions-zod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"_test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.10.5",
"@tanstack/react-form": "^2.0.0-alpha.2",
"@tanstack/react-form-devtools": "^1.0.0-alpha.2",
"@tanstack/react-form-nextjs": "^2.0.0-alpha.2",
"next": "16.3.0",
"react": "19.2.8",
Expand Down
15 changes: 15 additions & 0 deletions examples/react/next-server-actions-zod/src/app/devtools.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use client'

import { TanStackDevtools } from '@tanstack/react-devtools'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'

export function Devtools() {
return (
<TanStackDevtools
plugins={[formDevtoolsPlugin()]}
config={{
hideUntilHover: false,
}}
/>
)
}
2 changes: 2 additions & 0 deletions examples/react/next-server-actions-zod/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { ClientComp } from './client-component'
import { Devtools } from './devtools'

export default function Home() {
return (
<>
<ClientComp />
<Devtools />
</>
)
}
2 changes: 2 additions & 0 deletions examples/react/next-server-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"_test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.10.5",
"@tanstack/react-form": "^2.0.0-alpha.2",
"@tanstack/react-form-devtools": "^1.0.0-alpha.2",
"@tanstack/react-form-nextjs": "^2.0.0-alpha.2",
"next": "16.3.0",
"react": "19.2.8",
Expand Down
15 changes: 15 additions & 0 deletions examples/react/next-server-actions/src/app/devtools.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use client'

import { TanStackDevtools } from '@tanstack/react-devtools'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'

export function Devtools() {
return (
<TanStackDevtools
plugins={[formDevtoolsPlugin()]}
config={{
hideUntilHover: false,
}}
/>
)
}
2 changes: 2 additions & 0 deletions examples/react/next-server-actions/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { ClientComp } from './client-component'
import { Devtools } from './devtools'

export default function Home() {
return (
<>
<ClientComp />
<Devtools />
</>
)
}
4 changes: 3 additions & 1 deletion examples/react/nextjs/next.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { NextConfig } from 'next'

const nextConfig: NextConfig = {/* config options here */}
const nextConfig: NextConfig = {
reactStrictMode: true,
}

export default nextConfig
2 changes: 1 addition & 1 deletion examples/react/query-integration/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ createRoot(rootElement).render(
</QueryClientProvider>

<TanStackDevtools
config={{ hideUntilHover: true }}
config={{ hideUntilHover: false }}
plugins={[formDevtoolsPlugin()]}
/>
</React.StrictMode>,
Expand Down
2 changes: 1 addition & 1 deletion examples/react/simple/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ createRoot(rootElement).render(
<App />

<TanStackDevtools
config={{ hideUntilHover: true }}
config={{ hideUntilHover: false }}
plugins={[formDevtoolsPlugin()]}
/>
</React.StrictMode>,
Expand Down
7 changes: 6 additions & 1 deletion examples/react/ui-integration-dnd-kit/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as React from 'react'
import { TanStackDevtools } from '@tanstack/react-devtools'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { createRoot } from 'react-dom/client'
Expand Down Expand Up @@ -25,4 +26,8 @@ function App() {
)
}

createRoot(document.getElementById('root')!).render(<App />)
createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>,
)
7 changes: 6 additions & 1 deletion examples/react/ui-integration-shadcn/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as React from 'react'
import ReactDOM from 'react-dom/client'
import './index.css'
import { TanStackDevtools } from '@tanstack/react-devtools'
Expand All @@ -20,4 +21,8 @@ function App() {
)
}

ReactDOM.createRoot(document.getElementById('root')!).render(<App />)
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>,
)
18 changes: 18 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading