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