logoalt Hacker News

song_synthtoday at 5:27 PM0 repliesview on HN

Any insight on comparing Elm to Yew?

I once wrote a frontend webapp with Elm. And with backend server in Clojure, it made as much sense as Elm five years ago, right? :)

For the past two years I've instead used Yew, a rust crate for building UIs. It can look like react or like Elm, it's up to you for how you yews it ;0)

My latest app uses The Elm Architecture in Yew. It has been fantastic.

I think the biggest benefit Elm has over Yew is its access to the node js ecosystem through Port. You can interface with any npm package if you (or your AI) can write a port for it.

So far my best integration with yew dev has been using inline script tags (eek!) where I have to inject some external JS.