excessiveUseStateComponent "{{componentName}}" has {{useStateCount}} useState calls — consider useReducer for related statesmall-rules/prefer-use-reducerSuggest using useReducer for related state updates instead of multiple useState calls.
excessiveUseStateComponent "{{componentName}}" has {{useStateCount}} useState calls — consider useReducer for related stateThis rule does not accept options.
import { useState } from "@rbxts/react";
function Component() { const [firstValue] = useState(0); const [secondValue] = useState(0); const [thirdValue] = useState(0); const [fourthValue] = useState(0); const [fifthValue] = useState(0);}import { useState } from "@rbxts/react";
function Component() { const [firstValue] = useState(0); const [secondValue] = useState(0); const [thirdValue] = useState(0); const [fourthValue] = useState(0);}