3 ms·
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 represen
by jbreckmckye 9y ago
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?