News for hackers. Stuff that matters.
Re:Ways to make a web component by crooked-v on Friday July 17, 2020 @01:34PM (#23873166)
Two big points:

a. You can treat it as 'just Javascript' when dealing with bundlers (both complicated stuff like Webpack and simple hacky things like Gulp script concatenation).

b. For JSX and similar variants, because even the template part is 'just Javascript' with semantic sugar for tags, you can statically analyze it in a way that you can't with separate HTML and script content.

There are no comments on this comment yet.