Fork me on GitHub
#reagent
<
2016-04-12
>
lwhorton20:04:50

Hiya guys, I had a question about integrating reagent with a “raw react” component and if how one might go about that?

lwhorton20:04:07

i.e. we use hiccup to define a reagent component, (defn comp [] [:div [:ul [:li]]]), but is it possible to do something like:

(defn container []
  [:div
    [(some-component-not-reagent)]])

gadfly36120:04:46

@lwhorton: the simple react integration section of this post may be helpful: https://reagent-project.github.io/news/news050.html

gadfly36120:04:18

probably looking for something like adapt-react-class

lwhorton20:04:35

where

(defn some-component-not-reagent []
  (js/React.createElement (js/React.createClass stuff)))

lwhorton20:04:44

ok, neat, ill take a look thanks @gadfly361