Skip to main content

Command Palette

Search for a command to run...

React is Overkill: Why Python + HTMX is Dominating in 2026

A quiet shift toward simplicity in web development stacks

Updated
10 min read
React is Overkill: Why Python + HTMX is Dominating in 2026
S
I'm Ahmer, a full-stack developer and Software Engineering student passionate about building real-world web solutions. I explore web development, AI, and software design — and share what I learn through tutorials, dev logs, and personal projects. Currently growing my skills, one commit and one concept at a time.

Last year I spent forty minutes setting up a React project for an internal admin dashboard. Just the boilerplate. Vite config, ESLint setup, Tailwind integration, React Router, TanStack Query because someone on Twitter said it was the right way to handle server state now. I hadn't written a single line of actual application logic yet and I already had twelve files open.

The dashboard needed to list records from a database, let you filter them, and update a status field. Three things. That's it.

I've been thinking about that moment a lot since then. Not because React was wrong exactly, but because the whole experience made me ask a question I probably should've asked earlier: what problem am I actually solving, and does my stack match that problem?


HTMX has been around since 2020, technically. Carson Gross built it on older ideas — intercooler.js, hypermedia, REST as it was supposed to work. But it's only in the last eighteen months or so that it's started showing up seriously in production codebases beyond hobby projects and blog posts. The HTMX GitHub repo crossed 40k stars. The State of JS 2024 survey showed a weird but real pattern: developers were increasingly marking "would not use again" next to React while usage stayed high. People are still using it, but the love is clearly cooling at the edges.

What HTMX actually does is conceptually simple enough to explain in one sentence: it lets HTML elements make HTTP requests and swap parts of the page based on the response. That's it. No virtual DOM, no component lifecycle, no client-side routing, no state management library to argue about. You write hx-get="/search" on an input and hx-trigger="keyup changed delay:300ms" and the results div updates. The HTML is the state. The server renders the HTML. You're done.

For a lot of use cases — the boring ones, the productive ones — that's genuinely enough.


Where Python comes in is almost too natural. Django and FastAPI are both excellent at rendering HTML fragments quickly. Django's template engine is underrated. FastAPI with Jinja2 is fast enough that you genuinely don't need to think about it for most traffic levels a small team will ever hit. You return an HTML fragment from your endpoint, HTMX drops it into the DOM, and the user sees something happen. No JSON serialization, no client-side deserialization, no React re-render cycle. The server does what servers are supposed to do: handle the data, decide what the UI should look like, send it down.

Miguel Grinberg wrote a good piece about this pattern in his Flask-HTMX tutorials and the core insight is something almost boring: web applications were server-rendered for a decade and a half and it worked fine. The SPA era solved real problems — but it also introduced an enormous amount of accidental complexity for cases that didn't need it.


I want to be fair here because the React discourse tends to go off the rails. React is not bad. React is very good at what it was built for. When you need rich client-side interactivity — collaborative editing, complex real-time interfaces, something like Figma or Notion — the component model, unidirectional data flow, and the client-side rendering approach make sense. The ecosystem is genuinely impressive. Next.js solved real deployment problems. React Server Components, once you get past the initial confusion about what they even are, are a real architectural idea worth understanding.

But most applications aren't Figma. Most applications are CRUD with some filtering. Most internal tools are forms, tables, and dashboards. Most freelance projects are e-commerce sites and appointment booking systems. And for all of those, the React stack asks you to carry a lot of weight that delivers nothing to your end users.

The JavaScript fatigue conversation has been happening for a long time — this 2016 post by Jose Aguinaga was funny eight years ago because it was accurate. The irony is it's somehow still accurate in 2026, just with different library names. Bundlers changed. State management evolved from Redux to Zustand to Jotai to whatever came after that. Server components got added to React in a way that made half the existing tutorials wrong. The amount of meta-knowledge required to set up a React project correctly — not even write application logic, just set it up — is genuinely unreasonable for a lot of teams.


Here's where I want to talk about something that doesn't get said enough in these discussions, which is the South Asian developer context specifically.

A lot of the conversation about frontend frameworks happens in the frame of a US/European developer with fast internet, a high-spec machine, and a client who doesn't care about performance as long as it looks modern. That context shapes the defaults. When Vercel or Netlify blog posts talk about bundle sizes and Core Web Vitals, they're often writing for an audience where a 300kb JS bundle is a minor annoyance. In Pakistan — Karachi, Lahore, Hyderabad, smaller cities — that's not a minor annoyance. Users on mobile data in Tier-2 cities are waiting for your SPA to hydrate and it shows.

Freelancers here mostly work on Upwork and Fiverr. A lot of the gigs are admin dashboards for small businesses, HR tools for local companies, basic inventory management systems. The budgets are not large. The timelines are tight. When a Pakistani developer can ship a fully functional admin panel with Django + HTMX in two or three days because there's no API layer to design, no client-side state to manage, no authentication token flow to wire up separately — that is a real, material productivity advantage.

I've talked to a few people doing final year university projects at HITEC, COMSATS, and similar universities around Sindh and Punjab. The React stack honestly overwhelms students who are still figuring out async/await. Watching someone understand HTMX in an afternoon and ship something that works by evening — that's not a small thing. There's something to be said for a technology that removes barriers to entry without sacrificing capability.

The local SaaS mindset here is also different. When someone in Karachi is building their first B2B software product, they're thinking about getting to paying customers fast, not about whether their architecture will scale to ten million users. Python with Django gives you ORM, admin panel, authentication, and a templating system in one package. Adding HTMX on top means you get reactive UI without the separate frontend deployment, the CORS configuration, the API versioning headache. For a solo founder or a two-person team, that simplicity is worth a lot.


The cases where I'd genuinely choose Python + HTMX are becoming clearer to me over time.

Internal tools are the obvious one. Any time a company needs a dashboard that only ten people use, building a full React SPA is an organizational tax, not a feature. The JavaScript bundle has to be maintained, the frontend dev has to know the API contract, someone has to manage the deployment pipeline. With server-rendered HTML and HTMX, it's just one application. One deploy. The developer who built the data model builds the UI. That's not unsophisticated, that's economical.

Small startups at the idea validation stage. If you're not sure whether your product has legs yet, spending three months building a polished React frontend before you talk to users is a bet you probably shouldn't be making. Django + HTMX lets a Python developer ship something users can click through in days. That's not a forever architecture, but it doesn't need to be.

Content-heavy sites with some interactivity. A blog that has a comment section, a search bar, a newsletter signup. HTMX handles those interactions cleanly. You're not pulling in a frontend framework for three interactive elements.

Where it gets harder is when you actually need rich client-side state. An application where the UI is the product — design tools, real-time collaboration, complex data visualization with local filtering and sorting that needs to feel instant. React and its ecosystem are genuinely better there. That's not a grudging admission, it's just accurate.


There's also the team dynamic angle that people underplay. A lot of teams have backend developers who know Python well and frontend skills that are functional but not deep. The React ecosystem requires either genuine frontend expertise or a willingness to do a lot of cargo-culting patterns from Stack Overflow. Server-side rendering with HTMX plays to Python developers' strengths and doesn't require a separate specialist. In markets where fullstack Python devs are easier to find and cheaper to hire than React developers, that matters organizationally.

Adam Johnson's work on Django + HTMX patterns and the HTMX documentation's own essays on hypermedia are worth reading if you want to understand the philosophy here rather than just the mechanics. The argument isn't "SPAs were a mistake." The argument is closer to: the web platform extended HTML to support interactivity through JavaScript, but maybe it should have extended HTML itself instead. HTMX is a bet on that idea. It's a small, focused library — around 14kb unminified — and it's deliberately unambitious in scope. It does one thing and expects HTML and HTTP to do the rest.


I keep coming back to something that's hard to articulate but feels important. There's a certain developer experience that React optimizes for — the experience of a developer inside the component, thinking in terms of state and props and effects. It's a powerful mental model once you internalize it. But it's a mental model you have to fully commit to, and it pulls a lot of complexity in with it.

HTMX optimizes for a different experience — the experience of building something where the server is in control and the browser is just displaying what the server says. That's a much older model. It maps onto how people actually think about data and business logic, which lives on the server. For a lot of developers, particularly those whose real expertise is in data, backend systems, and APIs, that model is more natural and requires less context-switching.

Neither of these is objectively better. They're suited to different problems, different teams, and different moments in a product's life.

What feels true in 2026, though, is that HTMX has earned its place in the conversation as a serious option for production work. It's not a protest against modern tooling. It's not nostalgia for PHP spaghetti. It's a genuine approach to building web interfaces that works well for a specific, large, and underserved category of application. The category that most of us are actually building most of the time.


I rebuilt that admin dashboard eventually. Three days with FastAPI, Jinja2 templates, and HTMX. No build step. No node_modules folder the size of a small country. Every developer on the backend team could read and modify the templates without learning a new paradigm.

It's still running. Nobody has asked me to rewrite it in React.


If you want to dig into the actual mechanics, the HTMX documentation is genuinely well-written and surprisingly short. For the Python side, full-stack-fastapi-template is a good starting point even if you swap out the React frontend for Jinja2. And this talk by Carson Gross at DjangoCon 2022 is the most coherent thirty minutes you'll spend understanding what HTMX is actually trying to do.

Connect With the Author

Platform Link
✍️ Medium @syedahmershah
💬 Dev.to @syedahmershah
🧠 Hashnode @syedahmershah
💻 GitHub @ahmershahdev
🔗 LinkedIn Syed Ahmer Shah
🧭 Beacons Syed Ahmer Shah
🌐 Portfolio ahmershah.dev

Comments (19)

Join the discussion
K
kodadev89225d ago

This hits hard 😂 Sometimes simple stacks ship faster than “modern” complexity. Solid perspective on HTMX + Python.

S

This article explains something a lot of developers are quietly realizing in 2026: not every project needs a full SPA architecture. React is still powerful, but using it for every CRUD dashboard or internal tool often creates more complexity than value. Python + HTMX feels like a return to pragmatic engineering — faster builds, simpler deployments, smaller bundles, and much better performance on slower networks.

The point about accessibility through lightweight apps really stood out to me. Developers in regions with unstable internet or lower-end devices experience the web very differently than Silicon Valley assumptions. Shipping less JavaScript is not just optimization anymore — it’s good product design.

Also loved the “fast by default” mindset. Fighting hydration, bundle splitting, and endless frontend tooling just to reach acceptable performance gets exhausting. HTMX + server-rendered HTML makes simplicity feel modern again.

P
pokibo778226d ago

what about MERN vs Python ?

S

MERN is still great if you need a heavy, highly interactive client-side app with a lot of real-time state. But if you are building data-driven apps, dashboards, or CRUD tools, Python + HTMX blows it away in terms of development speed because you don't have to manage a separate frontend and backend API.

K

In the world of freelance development, especially on platforms like Upwork or Fiverr, time-to-market is the only metric that truly matters to a client. Spending hours on boilerplate for a custom admin panel or a standard e-commerce dashboard is a drain on profitability. Using Python and HTMX allows for a "monolith-first" approach that is significantly easier to maintain and deploy. It’s a pragmatic move for anyone looking to build high-performance, custom solutions without the overhead of a detached frontend.

S

This is an incredibly important point that people in tech bubbles completely forget, Moiz. Shipping a massive multi-megabyte JavaScript bundle is a terrible user experience for people on slower networks. Server-driven HTML is genuinely a form of digital accessibility.

M
Moiz27d ago

The "connectivity reality" is a huge factor that often gets ignored in tech hubs but matters immensely in global markets. Large JavaScript bundles are an accessibility barrier for users on restricted data plans or legacy 3G/4G networks. A lightweight stack isn't just a technical preference; it’s an inclusive design choice. If we can deliver the same functional e-commerce or dashboard experience with 90% less client-side code, we are building better software for everyone, regardless of their hardware.

S

Web performance is digital inclusion. Reducing bundle sizes isn't just about speed metrics; it's about making software accessible to users who don't have the luxury of high-end devices or unlimited data.

L
Legends27d ago

One often overlooked advantage of moving away from the "SPA-everything" mindset is the security footprint. Managing state, authentication, and CSRF protection across a decoupled React frontend and a Python backend adds layers of complexity where things can go wrong. By staying within the Python ecosystem for the majority of the logic and using HTMX for the interactivity, you reduce the attack surface and make the implementation of 2FA and secure session management much more straightforward.

S

Monolithic architectures get a lot of hate, but keeping auth, state, and security logic within a single trusted environment significantly reduces the moving parts and the overall attack surface.

M
Merzan27d ago

The point about technical SEO is critical here. Many developers don't realize that a heavy React bundle is an uphill battle for core web vitals from day one. When you switch to server-rendered fragments via HTMX, you’re essentially "fast by default." Achieving a 100/100 Lighthouse score becomes a matter of standard best practices rather than a month-long optimization sprint involving code-splitting and tree-shaking. It’s refreshing to see a return to a stack that prioritizes the end-user's load time over developer convenience

S

Exactly. "Fast by default" is the perfect way to put it. Fighting a heavy framework just to get good Core Web Vitals is exhausting. Starting with server-rendered HTML shifts the baseline entirely in your favor.

S
Sahil27d ago

The way you aligned specific technologies with career trajectories is much more helpful than a standard benchmark test. Understanding that Angular remains the cornerstone of enterprise and banking systems provides a clear roadmap for developers who prefer the stability of corporate environments, while Next.js v15 is clearly the winner for high-growth product companies. I particularly liked your advice on moving past analysis paralysis. Many beginners spend months in "tutorial hell" trying to find the perfect stack, failing to realize that a developer who can ship a functional e-commerce site in PHP will have no trouble picking up Node.js or Python later because the core logic is transferable. In a market where speed to delivery is a competitive advantage, being a pragmatic engineer who knows when to use a "boring" but robust stack like Laravel is a superpower. Thanks for cutting through the noise and focusing on what actually moves the needle in a professional career.

S

Glad that career-centric view resonated. Pragmatism beats framework loyalty every time. Once you understand the core patterns of shipping software, switching tools is just a matter of syntax.

J
Jeva Cafek27d ago

how you created this awsome thumbnail ?

S

Thanks! I used a mix of Gemini for image generation and Canva + Watermark remover to keep it clean and engaging. Glad you like it!

O
Oleh Kem27d ago

Honestly, this hits the nail on the head. For years, react has been the default choice even for basic CRUD apps, which is like using a rocket to go to the grocery store. I’ve found that staying in the Python flow with HTMX feels so much more natural for building saaS products quickly. It’s refreshing to see the pendulum swing back to simplicity. Do you think react fatigue will actually change how companies hire, or will they keep demanding 5 years of JS framework experience for simple internal tools?

S

Companies are slowly realizing "Time to Market" beats "Over-engineering." React isn't dying, but the ROI of simplicity is finally winning.

Battle of BackFront

Part 4 of 5

Ever wondered if the hype around a new tool actually matches reality? This series puts the biggest names in Backend and Frontend into the ring. I set up identical environments, run real benchmarks, and break down the trade-offs so you can stop guessing and start building with the right stack.

Up next

PHP vs Node.js (2026): I Benchmarked Both — Here's What Surprised Me

I ran 5 stress tests on PHP 8.4 and Node.js 22. From JSON speed to CPU-heavy tasks, here is the unbiased data on which backend truly wins in 2026.