Javascript – ReactJS: How do you swap elements in an array contained inside of an object property?
I am trying to swap the indexes of two elements inside of an array, which is contained inside an object as a property. In my CodeSandbox example below, whenever I try to click on the second "^" button, it gives…