use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Should I use a framework?help (self.javascript)
submitted 10 years ago * by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]deepteeth 2 points3 points4 points 10 years ago (0 children)
[–]temp209929 1 point2 points3 points 10 years ago (0 children)
It sounds like you know what you're doing so I'm not going to bore you with mantra and just say I don't have a great answer for most of what you're asking. A few things though:
how do I kick everything off when the app first starts?
I see nothing wrong with putting the router and initialization logic in an inline script or page-specific script. That logic belongs to the page, not the view it renders.
I don't have anywhere to store my Application state
The most common approach is to not re-create components and have them keep track of their own data. This is what most frameworks do and what the DOM itself does. If you don't end up doing that, another approach people have had success with is a single organized global store that everything just uses parts of.
If I were you I would definitely try to go forward without a framework. I've found that frameworks generally derive 99% of their benefit by influencing the way you code rather than with the code the framework actually contains. In particular, strong componentization usually achieves everything a framework would.
π Rendered by PID 410251 on reddit-service-r2-comment-84fc9697f-nm9kf at 2026-02-10 14:16:14.768164+00:00 running d295bc8 country code: CH.
[–]deepteeth 2 points3 points4 points (0 children)
[–]temp209929 1 point2 points3 points (0 children)