DEV Community

loading...

Discussion on: ⚛️ Reparenting is now possible with React

Collapse
smona profile image
Mason Bourgeois

Very cool stuff! And a good reminder that "impossible" always has some give. I've been having trouble building a custom drag interaction that moves components across parents without killing the interaction, hopefully this will do the trick 🤞

Collapse
smona profile image
Mason Bourgeois • Edited

It worked like a charm :). I'm using react-reparenting with react-draggable for preserving drag interactions on components that are being moved between parent containers. It doesn't preserve useState, but that's perfectly acceptable for my use case. Thank you!!

Forem Open with the Forem app