Fork me on GitHub
#reagent
<
2018-01-22
>
justinlee06:01:55

When I do this:

(defn draggable-notebook-link
  []
  (let [adapted-class (reagent/adapt-react-class
                        (reagent/reactify-component editable-notebook-link))]
      [adapted-class "first" "second"]))
then editable-notebook-link only receives a single argument: {:children #js ["first" "second"]}

justinlee06:01:51

The point of doing this is to stick a higher-order-component in the middle of the two reagent calls. Does anyone understand how I can pass arguments on to the adapted-class?