If your hook isn’t called inside of the top-level scope or it’s called conditionally in your component's body, React will throw an error when trying to render it saying "Hooks can only be called at the top level of a component or another hook." This is because Hooks rely on order execution accuracy across re-renders.