-
-
Notifications
You must be signed in to change notification settings - Fork 145
Description
There are some new static site generators out there (exhausting, I know) that support a concept of using the JSX syntax and component ideology, but they compile down to just HTML and CSS (unless you explicitly state that a component needs runtime JS). See Astro.
I could see this feature fitting nicely into this framework. I love the JSX and component-based architecture because you can keep track of your dependencies this way. HTML, scoped CSS, and JS are all in in the same file. Not to mention components literally accept dependencies.
I love go, and it seems like this library has accomplished a lot of this so far. But not everything is an SPA. Would it be possible to allow components to compile down to just HTML with no JavaScript if it wasn't required?
PS - I think it'd be advantageous to support such a feature because it'd allow consumers to ship less JS.