Reparenting is now possible with React

How I implemented Reparenting with a few lines of code

Paolo Longo
May 23, 2020 · 7 min read
React-Reparenting

I am designing an app similar to Trello. On the main page, I want some vertical Lists and some Cards that can be dragged from one List to another.

How can I transfer a Card component after dragging? With React it seems quite easy. To change the Parent component of a Child component…