DEV Community

Mamadou DIARRA (Afrocodeur)
Mamadou DIARRA (Afrocodeur)

Posted on

You don’t need more than… the DOM.

Imagine this:
Every HTML element can be enriched, listened to, updated…
Without losing its native nature.
No virtual DOM.
No magic.

No transformations.
Just a thin layer to stay close to your intent.

And the best part?
The same code works everywhere — whether you import it via a CDN or use it in a bundled project.

Next week: I’ll share what I’ve been building in this direction.

JavaScript #MinimalFramework #WebDev #NoRuntime #VanillaJS #React #VueJs

Top comments (2)

Collapse
 
ingosteinke profile image
Ingo Steinke, web developer

Thanks for your post! Vanilla JS is enough in many cases. Most static websites don't need much frontend JavaScript or none at all, especially no JS library or framework. I'm still wondering about your recent post though where you import ... from 'X' in your screenshot, which, to me, looks like using a framework (while we have native DOM manipulation methods in vanilla JS).

Collapse
 
afrocodeur profile image
Mamadou DIARRA (Afrocodeur)

Be patient and curious. As you can see, the main goal is to make working with the native DOM easier.
It will absolutely be possible not to use the framework itself, but simply adopt its ideology.