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

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

tonsky11: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

tonsky11: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

mbutler12:06:51

I think I understand 🙂