The Node

Gabrelsoft
2 min readJun 7, 2023
Expensive Document Object Model

Funny enough the title of this article those not related to the Nodejs runtime for JavaScript, it's more concerned with the Document Object Model, the DOM.

Nothing here would make sense if you haven’t expressed yourself using your search engine console, or perhaps, playing around with the text on the page, I think we need to start from there, then proceed deeper into more in-depth stuff, hope you're ready, because I won’t spare you😁.

After your HTML and CSS learning perhaps you move to JavaScript, the most loved scripting language. Something caught my eye when experimenting with Prosemirror and React, and I happened to not see an article that explains this topic well. This is what I would be doing, Stay tuned!

Why I think JS and JSX are different, they are quite similar but ain’t. The beauty of JSX is making it makes JavaScript presentable as HTML to the developer, unlike the pure JavaScript we are used to. If you happen to use React. creat-element or Vuejs with the h function, this is where Babel comes to play, to convert all our code into plain JavaScript. The DOM doesn't understand this, except Babel intervened. if I imagine this when working with Prosemirror on a document application(side-project).

Updating or working with the DOM is pretty expensive, we must take extra caution when doing so. Arigataou

--

--