Structuring JavaScript code

1 · Jamie Smith · Sept. 9, 2020, 5:51 p.m.
Even if your web app is not at Facebook scale, you should probably still use a framework like Svelte or React to help you manage state. Even in an app of moderate complexity managing state can get confusing and bugs are apt to creep in. Over the years I’ve built some moderately complex web apps with either vanilla JS or jQuery, and while I’ve found it to be quite possible to manage state without the help of a framework, it’s not scalable. So I’m trying to move to using React or one of the lighte...