9 ms·
React doesn't, but JS perhaps does. A lot of my code has to be mounted in separate root components and it's not allowed to be a SPA. In this instance, it was
by neiltwist 10y ago
React doesn't, but JS perhaps does.
A lot of my code has to be mounted in separate root components and it's not allowed to be a SPA.
In this instance, it was convenient to use event listeners, though it's very similar to calling a global.