4 ms·
I don't see any HTML in the examples. Just Javascript. I'm very confused. Edit: Or JSX. I dunno. I successfully avoided learning react so far.
by Takennickname 3y ago
I don't see any HTML in the examples. Just Javascript. I'm very confused.
Edit: Or JSX. I dunno. I successfully avoided learning react so far.
- s4i 3y ago> SSR composable HTML Custom Elements I assume that by default all that JS runs on the server and HTML gets returned to the browser.
- nonethewiser 3y agoThis starter project example is html: https://github.com/enhance-dev/enhance-starter-project/blob/main/app/pages/index.html https://github.com/enhance-dev/enhance-starter-project/blob/... What examples are you referring to?
- deleted 3y ago[deleted]
- M4v3R 3y agoThere's only one code example on the landing page and it's a JS class.
- nonethewiser 3y agoyeah an example of the scoped dom update feature. how are you going to do that in html? It says no javascript unless you want it, not no javascript.
- capableweb 3y agoIn the very same repository: https://github.com/enhance-dev/enhance-starter-project/blob/main/app/head.mjs https://github.com/enhance-dev/enhance-starter-project/blob/... GitHub says ~30% of that repository is JavaScript code. Seems strange for a HTML-first framework.
- flagrant_taco 3y agoThe other file in that example is JS, and interestingly it uses a plain template literal without an `html` tag or anything to help with language tools and syntax highlighting https://github.com/enhance-dev/enhance-starter-project/blob/main/app/head.mjs https://github.com/enhance-dev/enhance-starter-project/blob/...
- dgb23 3y agoI don't think it's JSX but pure JS. They seem to be using tagged template literals (like lit-html does). They are essentially functions. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...