I am following this example of React Table to attain drag and drop functionality in React Table columns.
https://codesandbox.io/s/zn9n6xpwk3
I have seen that the code is not working properly whenever I am introducing sub columns. This is my Demo - https://codesandbox.io/s/jpzwmvj7py
I have 4 columns, column 1 , 2 and 3 are simple columns while column 4 has subcolumns. Now I am trying to keep col 4 fixed and trying to rearrange col 1, 2 and 3. But I am not able to make col 4 fixed and not getting the desired outcome. Col 1 , 2 and 3 can interchange their place due to drag and drop but col 4 should be fixed and should not change its position. Kindly help me to understand where I am doing wrong. I am a complete beginner in React.