Re:JavaScript Fatigue or My History with Web Development
by jbreckmckye on Tuesday June 27, 2017 @03:12PM
(#14648339)
You can, but it requires a lot of discipline, and the code you're left with is not particularly fast or elegant.
Still, if you must: create classes to represent components, with methods used to manipulate markup, and plug those methods into a simple pub/sub event bus. This will work for very simple apps, but ask yourself - how simple will your app remain?
Still, if you must: create classes to represent components, with methods used to manipulate markup, and plug those methods into a simple pub/sub event bus. This will work for very simple apps, but ask yourself - how simple will your app remain?