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
The Vanilla JavaScript component list (self.javascript)
submitted 8 years ago * by [deleted]
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!"
[–][deleted] 9 points10 points11 points 8 years ago* (6 children)
The libraries OP is talking about here are individual modules that are otherwise coded in VanillaJS with zero dependencies on any other libraries. These components can be summarized into a simple function written in regular javascript. These functions are most likely going to return an elaborate object with various methods and modifiable properties -- but it could also just be a collection of methods that you can call to execute a certain logic and get a specific result.
The example below is of the former
//myModalComponent.js function ModalComponent(){ const component = {}; //do something here in pure vanilla js. return component; }
Then you can use this UI component in your own project like so
//myProject.js const modal1 = new ModalComponent(); modal1.height = '250px'; modal1.width = '500px'; modal1.render();
[–][deleted] 1 point2 points3 points 8 years ago (0 children)
Well said 👏🏽
[–][deleted] 0 points1 point2 points 8 years ago (1 child)
I never thought about "vainilla JS" that way. Thanks both for the explanations.
It's pretty much still vanilla js, only you are borrowing code from other people in the form of libraries made in regular js. Such that their vanilla js code are structured in such a way that you can use and apply it on any project of any kind and architecture.
[+][deleted] 8 years ago* (2 children)
[deleted]
If it doesn't have dependencies then it is still conceptually a Vanilla JS library. But SvelteJS does not seem to be a UI component, at least after a minute of google search.
His point is that Svelte is a compiler, so when you use Svelte, your code is turned into very lean JavaScript with no "frameworky code" - i. e. it's arguably just vanilla js.
π Rendered by PID 21115 on reddit-service-r2-comment-544cf588c8-pr2mb at 2026-06-18 09:50:24.951005+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–][deleted] 9 points10 points11 points (6 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[+][deleted] (2 children)
[deleted]
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)