For those who may be unfamiliar with the "immediate mode" vs "retained mode" terminology here, an aha moment for me was realizing frameworks like React are essentially immediate mode APIs (such as declarative JSX) abstracting an underlying retained-mode system (the DOM).
It may not be a perfect analogy, but seems to be basically true.
It may not be a perfect analogy, but seems to be basically true.