Fork me on GitHub
#reagent
<
2017-01-28
>
artur10:01:34

About a year ago I heard about some way to use React components from NPM in a reagent app easily and that it was under development. Any update on this?

jumar15:01:44

I’m not very familiar with reagent but maybe https://reagent-project.github.io/news/news060-alpha.html can answer your question (section “Better interop with native React”) ?

rorydouglas16:01:22

@artur not sure about npm, but i’ve had good success using JS React components from http://cljsjs.github.io (i.e. that have externs provided) in reagent. after including the cljsjs dep in project.clj i usually end up adding a light wrapper component to give re-com-style keyword args and to adapt the JS Component function using reagent/adapt-react-class

danielcompton17:01:11

@artur: there's some bleeding edge (last 24 hours) changes to support consuming NPM modules