* write stateful UIs (native, jQuery)
* have a Virtual DOM (React, Vue)
* use a template language that is JIT or AOT compiled (Angular, Svelte)
Those are your choices.
(A predecessor to Svelte)