diff --git a/packages/docs/src/app/(pages)/_landing/demo.client.tsx b/packages/docs/src/app/(pages)/_landing/demo.client.tsx index ad9a1c2d4..a4e06394d 100644 --- a/packages/docs/src/app/(pages)/_landing/demo.client.tsx +++ b/packages/docs/src/app/(pages)/_landing/demo.client.tsx @@ -3,7 +3,7 @@ import { parseAsInteger, useQueryState } from 'nuqs' export function Demo() { - const [hello, setHello] = useQueryState('hello', { defaultValue: '' }) + const [name, setName] = useQueryState('name', { defaultValue: '' }) const [count, setCount] = useQueryState( 'count', parseAsInteger.withDefault(0) @@ -18,13 +18,13 @@ export function Demo() { Count: {count} setHello(e.target.value || null)} - data-interacted={Boolean(hello)} + onChange={e => setName(e.target.value || null)} + data-interacted={Boolean(name)} /> -

Hello, {hello || 'anonymous visitor'}!

+

Hello, {name || 'anonymous visitor'}!

) }