Fork me on GitHub
#reagent
<
2020-06-07
>
Eliraz13:06:15

how would you go about render props in reagent?

lilactown16:06:54

if you're doing interop with a 3rd party component that uses child-as-function prop:

(defn my-component []
  [:> LibComponent
   (fn [x]
     (r/as-element [:div "doing something with x:" (pr-str x)]))])