React hooks, including useState, should not be called conditionally. Hooks rely on the order in which they are called, so placing them inside a conditional statement could lead to unpredictable behavior. This is why hooks must be called at the top level of the component.