Re: [ClojureScript] reagent - drag/drop?

2014-02-19 Thread Dan Holmsand
Well, as long as a Reagent component doesn't re-render (because it receives different arguments, an atom changes, etc.), it doesn't cause React to touch the DOM node it generates at all. So, for example if you have a component like this: (defn empty-node [] [:div#empty-node-id]) the div will

[ClojureScript] reagent - drag/drop?

2014-02-18 Thread ritchie turner
Hi Dan How would you recommend dealing with drag/drop in reagent? I probably want to use the goog.fx.DragDrop functionality and move nodes between parents (components) However, reparenting like this seems like a great way to confuse react (defn- ondrop [event] (let [ti (.-element (.-dropTar