Skip to content

Commit 56da82e

Browse files
authored
fix: RadioGroup controlled example (#7763)
1 parent 569faf5 commit 56da82e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-spectrum/radio/docs/RadioGroup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ The example below uses `onChange` to log how the user is interacting with the co
133133

134134
```tsx example
135135
function Example() {
136-
let [selected, setSelected] = React.useState('');
136+
let [selected, setSelected] = React.useState(null);
137137

138138
return (
139139
<>

0 commit comments

Comments
 (0)