I have an html table that should be able to reorder rows as well as columns.
Reordering rows is pretty straight forward but reordering columns is pretty hard since the cells of a column do not share the same parent element.
<table>
<tr>
<td>Col 1</td>
<td>Col 2</td>
</tr>
<tr>
<td>Col 1</td>
<td>Col 2</td>
</tr>
</table>
How do I implement column-dragging with react?