But won’t AI save us?
Most AI code generation tools lean heavily on React. Ask one to build a web app and there’s a good chance you’ll get a React frontend. So isn’t learning something different a waste of time? Why not let the AI deal with the complexity?
It’s a fair question. But simpler tools make AI-assisted development work better, not worse.
Simple architecture means simple context
An AI tool can only work with what it can see. With a separate React frontend, one feature is spread across a model, an API endpoint, a serializer, a data-fetching layer, frontend state and a few components. The AI needs all of that in its context to make a sensible change.
With HTMX and Alpine.js, the same feature is usually a view and a template. There’s less to load, less to keep in sync, and fewer places for the AI to get things wrong.
Less code means fewer tokens
React code is big compared to HTMX code. Something simple, like a button that saves a form and updates part of the page, can take a component, some state, an effect or two, a fetch call and an API endpoint. With HTMX it’s a couple of attributes on an HTML element.
Every line the AI writes, it also has to read again the next time it works on that code. Spending lots of tokens on custom code for things that should be simple costs you time and money, and fills up the AI’s context with noise.
Your users still matter
AI might write the code, but real people use the result. Small, fast pages that don’t download a lot of JavaScript are better for everyone, and especially for people on slow connections, expensive data plans or older devices.
How the code gets written doesn’t change that.
You still need to understand the code
AI tools need guidance. You have to review what they write, spot when they’ve gone off track, and explain what you actually want.
That’s much easier when the codebase is simple. If you can understand how a feature works by reading one view and one template, you can reason about it yourself, and you can guide the AI well. If the code is a pile of layers you don’t fully understand, you can’t tell good changes from bad ones.
Builds and deployments still matter
AI can write your code, but you still have to build it, deploy it and keep it running. A JavaScript build pipeline, a separate frontend app and a JSON API are all things that can break, need updating, and need to be understood when something goes wrong.
With no build step and one codebase, there’s simply less to look after.