Back in the day, Unix was considered "portable" because the code could be easily adapted to different underlying platforms. Maybe there is a similar way to build squint apps, and "port" them to clojurescript. I have a squint React app with a "store" which is a kind of hacky version of https://github.com/lilactown/pyramid . It's based on immutablejs, whose data structures are quite like clojurescript's. Once my app is mature, I could see "porting" it to clojurescript+pyramid+helix without feeling overwhelmed. Right now though, "it's just javascript" is where I want to be mentally.
I have one project which works both for CLJS and squint, using reader conditionals, perhaps that helps: https://github.com/nextjournal/clojure-mode
it's compiled via squint which is made available on npm for JS users, while you can also use it as a CLJS dependency
That's cool!
and what's even more cool: the squint playground uses this very project to let you edit Clojure source :)
I’ve been using Jotai with good success - pretty simple but effective and integrates nicely with React.