We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 422ff33 commit faf5744Copy full SHA for faf5744
docs/rules/hook-use-state.md
@@ -27,7 +27,7 @@ export default function useColor() {
27
// useState call is destructured into value + setter pair, but identifier
28
// names do not follow the [thing, setThing] naming convention
29
const [color, updateColor] = React.useState();
30
- return useStateResult;
+ return [color, updateColor];
31
}
32
```
33
0 commit comments