Skip to content

Commit 5fde4db

Browse files
docs: renamed hello state to name in hero section demo
1 parent 4247777 commit 5fde4db

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/docs/src/app/(pages)/_landing/demo.client.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { parseAsInteger, useQueryState } from 'nuqs'
44

55
export function Demo() {
6-
const [hello, setHello] = useQueryState('hello', { defaultValue: '' })
6+
const [name, setName] = useQueryState('name', { defaultValue: '' })
77
const [count, setCount] = useQueryState(
88
'count',
99
parseAsInteger.withDefault(0)
@@ -18,13 +18,13 @@ export function Demo() {
1818
Count: {count}
1919
</button>
2020
<input
21-
value={hello}
21+
value={name}
2222
placeholder="Enter your name"
2323
className="peer flex h-10 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"
24-
onChange={e => setHello(e.target.value || null)}
25-
data-interacted={Boolean(hello)}
24+
onChange={e => setName(e.target.value || null)}
25+
data-interacted={Boolean(name)}
2626
/>
27-
<p>Hello, {hello || 'anonymous visitor'}!</p>
27+
<p>Hello, {name || 'anonymous visitor'}!</p>
2828
</>
2929
)
3030
}

0 commit comments

Comments
 (0)