helix

https://github.com/Lokeh/helix
Eliraz 2020-06-07T09:36:48.150100Z

@fabrao can you elaborate? I'm currently seeking which one is better for me, helix or reagent, the ability to use hooks is important to me, now reagent has that feature and it got me confused again

Eliraz 2020-06-07T12:41:49.150500Z

how would you go about render props in helix?

Aron 2020-06-07T14:40:09.150800Z

you can pass functions as props in helix as well, what is the issue?

Eliraz 2020-06-07T14:52:34.151700Z

oh I didnt say there's an issue. but how can you pass a function as children? I mean, what's the syntax?

Eliraz 2020-06-07T14:53:18.152Z

I'm still getting used to the language.

alidlorenzo 2020-06-07T15:10:11.154600Z

Helix is a minimal React wrapper, so it doesn’t try to impose new conventions, just helps you write React in idiomatic Clojurescript.

alidlorenzo 2020-06-07T15:10:18.154800Z

For render props, just pass a function as a child to your component, as you’d regularly do. I imagine something like this would work ($ Comp (fn [x] x)) , just make sure Comp handles the render prop

Eliraz 2020-06-07T15:21:01.155Z

got it. thanks

fabrao 2020-06-07T18:49:45.158800Z

@eliraz.kedmi Well, in reagent I didn´t know where to put things to be "Reactive". In Helix you use (use-state) and that´s it. You have to control the updating part with hooks. And besides if you have questions about how it works, you can seek even in React documentation, that have lots of references

fabrao 2020-06-07T18:52:14.159900Z

the bad thing I don´t like in that is when to use #js , but I use convertions all the time

Aron 2020-06-07T19:30:23.160200Z

I haven't used #js yet, what's it for?

wilkerlucio 2020-06-07T19:51:52.160300Z

to create literal JS objects and arrays

wilkerlucio 2020-06-07T19:52:20.160500Z

eg: #js {:foo "bar"} is like {"foo": "bar"} in JSON

Aron 2020-06-07T20:18:28.160700Z

thank you