Hello! I’ve looked at GTK several times over the years, but I haven’t ever built anything beyond following some simple “getting started” tutorials. I’d like to change that.
I’m wondering if there are any libraries that provide a declarative/reactive framework for working with the GTK API. Specifically, I’m thinking of the paradigm where a component (or the entire application) is treated as a pure function from “state” → “view,” and the application author isn’t responsible for imperatively updating view code (i.e. the framework manages updating the view when the state changes).
This approach was popularized on the web by the likes of React and The Elm Architecture, and it seems to be gaining traction in the world of mobile development with SwiftUI. I’m wondering if there’s anything similar for GTK. I found the gi-gtk-declarative Haskell project, but it doesn’t seem to have plans to update to GTK 4. Are there alternatives that I’m missing?