Post

I still think there's a missed opportunity to create a frontend framework that works really well with AI tooling.

0 reposts10 likes

Personally I think WebComponents could really be such a huge leap forward for AI. A single layer versus having to understand how code aggregates to the broader HTML. Especially with invokers / commands: now we have some standards with which we can wire the web declaratively!

I don't think web components are a good enough abstraction. If you're leveraging AI, you definitely want to be working with a higher abstraction so that it can make your application portable. The DOM should be purely seen as one of many render targets IMO.

A crafty custom element (CE) lib could be portable. CE libs that have SSR have a different output on the server (strings instead of DOM, using a lightweight DOM phonyfill, or no fill at all). This can be made to output to native components instead, if desired. Just the same a Svelte, Vue, or Solid.

The amount of times I've had to correct AI output because it doesn't quite understand control-flow around JSX is astonishing. I still feel like JSX in its current state isn't the ideal thing we should be using in 2025.

Svelte 5 fairs better, but then AI gets confused around template modules vs non template modules when it comes to runes. This might get better if Svelte opens up declaring state and other bits of logic in control-flow, but it's still not great.

Some carefully trained ember models do well with the component syntax. (Which is good because testing with inline components is amazing (jsx has this as well, and no ane else does?) Specific apis are still occasionally hallucinated tho, even if syntax is correct. And hopefully one day docs ..

I should probably play around with Vue and Solid with Cursor/Claude Code more to see how they fair. So far it's been a really frustrating experience to say the least, I'm just having to correct everything that they suggest changing each time.

For context, they work really well outside of writing code outside of framework "template" logic. Like they're super powerful at fixing regexes and mundane tasks that would take me 20mins, but now takes me a few mins.