diff --git a/docs/rules/hook-use-state.md b/docs/rules/hook-use-state.md index 838d86b607..9654f270fb 100644 --- a/docs/rules/hook-use-state.md +++ b/docs/rules/hook-use-state.md @@ -27,7 +27,7 @@ export default function useColor() { // useState call is destructured into value + setter pair, but identifier // names do not follow the [thing, setThing] naming convention const [color, updateColor] = React.useState(); - return useStateResult; + return [color, updateColor]; } ```