News for hackers. Stuff that matters.
Re:DFlex – JavaScript framework for drag and drop apps by jimmy2020 on Thursday September 15, 2022 @12:12PM (#32854195)
Thanks for the feedback. DnD kit is amazing and the initial library also is so powerful [1]. But we still need a comprehensive solution. Committing changes to DOM with each interaction and shadow caching is not a sustainable solution for building interactive apps. React or any other framework is not designed for interactivity. So even if you are using React you are not actually getting the benefit of React to reconcile because you still committing changes directly to DOM. That's why I built DFlex which has its own reconciler and transformation mechanism.

[1]: https://shopify.github.io/draggable/

Re:DFlex – JavaScript framework for drag and drop apps by solarkraft on Thursday September 15, 2022 @01:51PM (#32855848)
> React or any other framework is not designed for interactivity.

I thought that was the whole point. Are we using different definitions of interactivity?

Re:DFlex – JavaScript framework for drag and drop apps by jimmy2020 on Thursday September 15, 2022 @01:55PM (#32855914)
In the drag-and-drop context, an interactive element is an element that can traverse the DOM tree and change its position without causing a layout shift and with a proper reconciler and transformation mechanism.