Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: