On Sat, Jan 18, 2014 at 10:10 AM, Samuel Aaron <[email protected]> wrote:

>
> On 18 Jan 2014, at 15:50, David Nolen <[email protected]> wrote:
>
> > It generates functions that call React.DOM.tag so that you can use apply.
>
> Sure, but I guess you have to call gen-react-dom-fns manually if you want
> cljs functions for all the React.DOM.tags, whereas gen-react-dom-inline-fns
> is automatically called to create macros in the om.dom namespace.
>
> Unless I'm reading the src incorrectly, only the macros are created in
> om.dom, not the fns. I'm therefore unsure why apply even works on these
> macros.
>
> Sam
>

gen-react-dom-inline-fns generates macros so non-higher order usage of
dom/tag inlines into React.DOM.tag

gen-react-dom-fns generates real functions so higher order usage works.

David

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to