all AI news
Creating simple static server component
DEV Community dev.to
What this article is about?
Creating simple static server components at working project with loadable components (without next.js)
Current setup
The site works on a standard setup: SSR render static HTML with critical CSS at <head>
, and has React hydration on the client to make it interactive.
Site's HTML is generated with a JSON tree, with widgets structure, coming from DB+CMS. It is a fastify app on server, with isomorphic factory. It gets JSON and includes selected components on …
article client components css current generated head html interactive json loadable next next.js project react server servercomponents setup simple ssr standard tree