all AI news
Creating simple static server component
What this article is about?
Creating simple static server components at working project with loadable components (without next.js)
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 …