afterEarlyReturnThis hook is being called after an early return. Hooks must be called unconditionally and in the same order every render.small-rules/use-hook-at-top-levelEnforce that React hooks are only called at the top level of components or custom hooks, never conditionally or in nested functions
afterEarlyReturnThis hook is being called after an early return. Hooks must be called unconditionally and in the same order every render.conditionalHookThis hook is being called conditionally. All hooks must be called in the exact same order in every component render.loopHookThis hook is being called inside a loop. All hooks must be called in the exact same order in every component render.nestedFunctionThis hook is being called from a nested function. All hooks must be called unconditionally from the top-level component.recursiveHookCallThis hook is being called recursively. Recursive calls require a condition to terminate, which violates hook rules.tryBlockHookThis hook is being called inside a try block. Hooks must be called unconditionally at the top level.This rule accepts one options object after the severity.
function Component() { if (condition) { useEffect(() => {}); }}function Component() { useEffect(() => {});}