Really fantastic writeup by @moh-kohn.eurosky.social about the power of HTML-first sites (and @astro.build!) My humble opinion is that 90% of websites don't need Next.js, React, or other hefty client-side frameworks—they just need static pages and the occasional form
Post
mohkohn.co.ukHow building an HTML-first site doubled our users overnightMy client was a utility company, and they had a big problem...
maybe dumb question but why is this a problem? this basically means they get inlined into initial HTML (ok maybe a bit silly) and then driven from DOM for new renders. “use client” does NOT mean “exclude me from HTML”
0 reposts1 like
Also, when I read the docs on 'use client', it seems to imply that the code does not run on the server. All the meta frameworks run the code on the server and client. react.dev/reference/rs...
react.dev'use client' directive – ReactThe library for web and native user interfaces