Fork me on GitHub
#reagent
<
2020-11-08
>
wombawomba15:11:21

How can I make sure a reagent component is updated when its size changes?

Andrei Stan19:11:59

Hello, I am trying to implement react-dropzone (still trying); When i import

["react-dropzone" :default Dropzone]
and i js/console.log Dropzone i reveive an object
{$$typeof: Symbol(react.forward_ref), displayName: "Dropzone", defaultProps: {…}, propTypes: {…}, render: ƒ}
How can i proper render a $$typeof: Symbol element ?

Karol Wójcik04:11:57

[:> Dropzone {} {{children_here}}]

👍 3
Andrei Stan19:11:14

Thanks a lot! 
this works so far (no errors):

(defn child []
  (r/as-element [:p "drop here"]))

[:> Dropzone {} child]
Now i need to figure out how to implement the dropzone :D