“Why should the code inside a custom Hook stay pure during rendering?”
Because custom Hooks execute only once during application startup
Because custom Hooks re-run on every component render just like component bodies
Because React serializes Hook logic between renders
Because impure Hooks are automatically memoized by React