#43 Migrating from React to raw JS for a tiny SEO-friendly blog

I migrated my blog from a React/Vite app to a tiny build script that generates static HTML. wanted fewer moving parts, predictable output, and pages that are fast and indexable by default.

What problems I had (React)

The new approach (raw JS static generator)

Now the “app” is basically:

At build time we:

  1. Read markdown
  2. Normalize content (e.g. convert <img ...> to markdown images, embed YouTube links)
  3. Extract metadata
    • title
    • excerpt (short description)
    • preview image / YouTube thumbnail
  4. Render HTML for each post and for paginated index pages

No client-side router, no hydration, no “loading state”. Just pages.

SEO wins (the practical kind)