Now
Senior Front-End Developer, Yabagram
Based in
Baghdad, Iraq ·

Notes4 min read

Choosing between Astro and Next.js for client builds

I build marketing sites and portfolios in Astro because pages ship minimal JavaScript and load almost instantly on mobile connections. When a product needs authentication, complex client state and live dashboards, I build in React and Next.js.

By Ahmed WMH, senior front-end developer at Yabagram

When Astro is the right tool

Company rebrands, personal websites and editorial portfolios do not need a heavy application runtime on every page. Astro outputs clean HTML and CSS by default and hydrates JavaScript only where interaction genuinely calls for it—keeping pages fast even on slower mobile networks.

When React and Next.js win

On products like Ghima Store, TheMind Platform and Yaba GRAM, visitors are logging in, filtering catalogs, managing orders or updating operational workflows. For stateful applications, React and Next.js give you the component patterns, routing and ecosystem that scale cleanly.

What stays the same across both

Whichever framework fits the job, the standards stay consistent: clear design tokens, accessible markup, responsive mobile layouts and clean code that another engineer can step into without friction.

Portrait of Ahmed WMH made of work tiles

Ahmed WMH

Senior front-end developer and UI/UX designer building fast web products, SaaS interfaces and brand-led websites.

Ask me about your project

More notes

  1. How I scope a website rebrand and UI/UX project10 Nov 2026
  2. What to send before our first project call22 Sep 2026
  3. Lessons from designing Arabic RTL and bilingual interfaces18 Jun 2026