Per-row reorder hook. Owns the row's local state and registers the row's DOM elements
with the list controller once both rowRef and handleRef are attached. Unmounting (or
detaching either ref) tears down the registration.
Called inside the item component, not in the parent's render loop — this is what keeps
us inside the rules of hooks.
Per-row reorder hook. Owns the row's local state and registers the row's DOM elements with the list controller once both
rowRefandhandleRefare attached. Unmounting (or detaching either ref) tears down the registration.Called inside the item component, not in the parent's render loop — this is what keeps us inside the rules of hooks.