Fork me on GitHub
#rum
<
2018-06-11
>
Matt Butler11:06:01

sorry @tonsky I'm not sure I follow, what you do mean specifically by "rum function". Thanks again for the help.

Niki11:06:22

Rum doesn’t have React class exposed because the only thing you can do with it is to create element. So Rum gives you a function that does that for you. If you need to wrap it, create another function and wrap the function that Rum gives you. I think it’s me who don’t follow what your use-case is

Niki11:06:57

(defn wrapped-component [x]
  (create-component {:render [:div x] :will-update #(... x ...))}
this won’t work because you don’t want to create classes dynamically. Only instances

Matt Butler12:06:51

I think I understand 🙂