Skip to content

Commit 449bc07

Browse files
authored
fix the controlled RadioGroup example (#6057)
fix the controlled RadioGroup example (#6057)
1 parent 0a84ded commit 449bc07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-aria/radio/docs/useRadioGroup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ The `onChange` event is fired when the user selects a radio.
268268

269269
```tsx example
270270
function Example() {
271-
let [selected, setSelected] = React.useState('');
271+
let [selected, setSelected] = React.useState(null);
272272

273273
return (
274274
<>

0 commit comments

Comments
 (0)