Have you ever ran into a situation where it was better/preferred to store something in the JavaScript global variable as opposed to global state (Redux, Context API, etc)? And if so, what were your reasons? It is common knowledge that using global variables are bad, yet I have seen it before in company applications.
submitted by /u/dotobird
[link] [comments]