Fork me on GitHub
#clojurescript
<
2024-04-13
>
Akane07:04:00

Hi everyone, I'm interested in trying out frontend development with Clojurescript, and I would like a good React wrapper. The first thing I'm recommended is reagent/reframe, however people had been talk about them being not able to deal with latest react features, and I had chunks of code written already. Should I find something else to use, or continue using reagent?

p-himik09:04:51

FWIW, Reagent on top of React 17 without any new features has been working for me just fine. I do have to use hooks every now and then to work with React components that require it, but I don't build my own code with hooks. But there are wrappers that less of an abstraction than Reagent. I know of Helix and UIx.

Lari Saukkonen10:04:41

Links to some other options: https://github.com/lilactown/helix https://github.com/pitch-io/uix https://github.com/ferdinand-beyer/refx They have slightly different syntax and way to interop with React itself.

김태희(taehee kim)15:04:54

I'm using react 18 with reagent in production. It works well with modern react libraries. But I recommend uix2 for new project only if you need the modern features. It can be used within reagent project. Reagent team has a plan to adopt hook and useSyncExternalStore. But it is 2024 already... https://www.metosin.fi/blog/reagent-towards-react-18 https://github.com/reagent-project/reagent/blob/master/ROADMAP.md

tlonist14:04:43

is https://github.com/oliyh/re-graph de facto standard library when it comes to using graphql with cljs?

phill17:04:52

Lacinia is such fun! And the linked re-graph page says, "This library behaves like the popular https://github.com/apollographql/subscriptions-transport-ws for graphql and as such is compatible with https://github.com/walmartlabs/lacinia-pedestal."

👀 1