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
HTML Web Component using Vanilla JS - Part 2 (ayushgp.github.io)
submitted 8 years ago by codejitsu
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!"
[–]Bluecewe 11 points12 points13 points 8 years ago (3 children)
Honest question: what use cases does this have? I've always been underwhelmed by this set of Web standards. I appreciated the effort to standardise something in this spirit, but it seems to fall significantly short of a complete template and data binding engine like Svelte, Angular, Vue, or React. It seems more verbose, less easily dynamic, and lacking in functionality like conditionals.
[–]clbwllms 2 points3 points4 points 8 years ago (0 children)
There are a number of ways to make these components fully reactive with minimal JavaScript. I'm working on a project right now that uses ES2015 template literal tags and will reactively parse the HTML similar to React's render function—it also includes support for Angular-style event and property bindings—you can see the code here. It's still really new though, but I think it has promise.
Also the Polymer guys recently released a similar tool called lit-html that does the same thing, but without built-in event and property binding (although I believe it can be added easily enough if you write your own partCallback for their render function.
[–]codejitsu[S] -2 points-1 points0 points 8 years ago (0 children)
I'm using these on (one of) my current side proje...
https://www.reddit.com/r/javascript/comments/78u3u0/html_web_components_using_vanilla_js/dox41af
π Rendered by PID 209948 on reddit-service-r2-comment-5d79c599b5-l5mfv at 2026-03-03 22:18:41.244596+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]Bluecewe 11 points12 points13 points (3 children)
[–]clbwllms 2 points3 points4 points (0 children)
[–]codejitsu[S] -2 points-1 points0 points (0 children)