Thanks, Through my try, I think ":>" to be a better way, but I have not 
know their difference, I'm learning

在 2017年5月25日星期四 UTC+8下午11:02:15,Mike Rodriguez写道:
>
> Is what you are missing `reagent.core/adapt-react-class`?
>
> Something like (not tested or anything):
>
> (require '[reagent.core :as r])
>
> (def antd-button (r/adapt-react-classjs/antd.Button))
>
>
> More on this fn can be found 
> http://reagent-project.github.io/news/news050.html
>
>
>
>
> On Thursday, May 25, 2017 at 12:00:43 AM UTC-4, zhangen...@gmail.com 
> wrote:
>>
>> I create a reagent template project, then I want to use a react UI 
>> library, like antd (https://ant.design/docs/react/introduce), I think 
>> cljsjs/antd can be used, but doesn't success.
>>
>> I change the function current-page like that:
>>
>> (defn current-page []
>>   [js/antd.Button.])
>>
>> but doesn't work.
>>
>> other side, the code like that:
>>
>> (defn current-page []
>>   [:div (js/antd.message.success. "success")])
>>
>> work success!
>>
>> I know that is a function call, not a compontent.
>> So, how to use compontent like "Button"?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Reagent-Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reagent-project+unsubscr...@googlegroups.com.
To post to this group, send email to reagent-project@googlegroups.com.
Visit this group at https://groups.google.com/group/reagent-project.
For more options, visit https://groups.google.com/d/optout.

Reply via email to