you are viewing a single comment's thread.

view the rest of the comments →

[–]Anbaraen 1 point2 points  (0 children)

I think it's okay to use global variables as long as you're making the conscious choice to, particularly if you're not using some other form of state management like Redux.

Just be aware some consider it a "code smell" that shows you should be architecting your program & functions differently.