DEV Community

Discussion on: Why the React community is missing the point about Web Components

oenonono profile image
Junk • Edited on

You all realize that JavaScript is just a string in a file without an engine to parse, compile, and execute it, right?

Thread Thread
bennypowers profile image
Benny Powers 🇮🇱🇨🇦

Well, it's a drop more complicated than that. Tagged template literals know about their static and dynamic parts. And lit-html uses template tags and weakmaps for fast parsing and efficient storage.

thepassle profile image
Pascal Schilp

Im fine with it being string blobs, string parsing is much faster than html parsing.