Fork me on GitHub
#helix
<
2020-06-01
>
wilkerlucio00:06:21

@lilactown sounds like what you said assumes that the user can only go via the macro, but what when the user needs to call the thing with apply? IME we will always need to non-macro version, runtime calls are non avoidable in some cases

wilkerlucio00:06:49

the bandaid you mention can be just the solution IMO (just use that on styles as-is)

lilactown00:06:12

I’ve never needed the runtime version in my code fwiw

lilactown00:06:53

but I want to support it

Aron04:06:56

this thing with the apply caught me regularly until it clicked finaly and I could use it, but I guess that was because I was new to cljs+react

MorongÖa10:06:48

how would this look like?

MorongÖa10:06:12

<Form.Field name='name.first'/>
in #helix

Aron11:06:15

($ Form.Field {:name "name.first"})

Aron11:06:03

this is why I never liked jsx, I always believed that keeping the original createElement function semantics is important

MorongÖa11:06:56

Thank you. Struggled a bit there. But did get it

Aron11:06:42

np. I think it could be ($ (.Field Form) {:name "name.first"}) too

MorongÖa14:06:09

That would require Field to be a function of Form , no?

Aron14:06:02

I mean, "`($ Form.Field ...)`" already means it is a react component, so it's a function

👍 4
lilactown15:06:00

if you use the postfix notation it’s (.-Field Form)

lilactown15:06:37

(.Field Form) invokes Field immediately as a function. .- takes it as a value using property access

👍 8