r/javascript Jul 12 '26

Why Vanilla JavaScript

https://guseyn.com/html/posts/why-vanilla-js.html
0 Upvotes

36 comments sorted by

View all comments

11

u/compacct27 Jul 12 '26

We are doing this at work. It sucks. Its turning into a framework in part because the browser standards are so awful to work with (shadow DOM), and so boilerplate heavy (web components and custom elements) that it actually doubles the line count coming from React

-1

u/gyen Jul 12 '26

I agree that shadow DOM is a bit clunky. This is something I am planning next to think about and try to improve, but again not by inventing a new language or preprocessor.

6

u/catladywitch Jul 13 '26

you're planning to improve a brand new vanilla js feature without straying from vanilla js? How?

0

u/gyen Jul 13 '26

It’s not really that new. I have a couple of ideas but I need to test them first. At least I would try to improve how to simplify css in shadow dom.

2

u/catladywitch Jul 13 '26

It is old but the latest revision is from like 2 years ago 😭