File tree 1 file changed +5
-5
lines changed
packages/docs/src/app/(pages)/_landing
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3
3
import { parseAsInteger , useQueryState } from 'nuqs'
4
4
5
5
export function Demo ( ) {
6
- const [ hello , setHello ] = useQueryState ( 'hello ' , { defaultValue : '' } )
6
+ const [ name , setName ] = useQueryState ( 'name ' , { defaultValue : '' } )
7
7
const [ count , setCount ] = useQueryState (
8
8
'count' ,
9
9
parseAsInteger . withDefault ( 0 )
@@ -18,13 +18,13 @@ export function Demo() {
18
18
Count: { count }
19
19
</ button >
20
20
< input
21
- value = { hello }
21
+ value = { name }
22
22
placeholder = "Enter your name"
23
23
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 ) }
26
26
/>
27
- < p > Hello, { hello || 'anonymous visitor' } !</ p >
27
+ < p > Hello, { name || 'anonymous visitor' } !</ p >
28
28
</ >
29
29
)
30
30
}
You can’t perform that action at this time.
0 commit comments