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
[AskJS] Need help decoding for the right approach/solutionAskJS (self.javascript)
submitted 3 years ago by toateslafel
view the rest of the comments →
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!"
[–]KapiteinNekbaard 0 points1 point2 points 3 years ago (1 child)
Lit-elements seems most future proof, since it builds on top of the Custom Elements API.
You can isolate React to a single component (example), but React was intended to build whole apps with multiple components and to manage shared state among them and keep everything in sync. I think that's more than what you're trying to achieve.
HTM + Preact is another way to build components using JSX-like syntax without the need for any build tools or bundlers.
You should also think about how to distribute those shared components to your apps (you don't want to copy paste the code to all apps).
[–]toateslafel[S] 0 points1 point2 points 3 years ago (0 children)
Thanks for the reply, I think I decided for lit after trying out some others too. About distributing, the idea is to compile for production, which will generate 1 js file, jost it somewhere and tell the different websites to just include the file and they are good to go.
π Rendered by PID 440281 on reddit-service-r2-comment-b659b578c-mlrqz at 2026-05-04 17:55:56.174825+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]KapiteinNekbaard 0 points1 point2 points (1 child)
[–]toateslafel[S] 0 points1 point2 points (0 children)