Look at this example for help. We want the user to rotate the image and then replace the original image in our array with the rotated one. Look at the removeFile() function for how the updating occurs.
We don't need any of the crop/zoom/other stuff, so if you find an easier way to rotate the image that also works
Overview
Allow users to rotate the orientation of photos they upload of the pet.
Details:
react-easy-crop
for the rotating.removeFile()
function for how the updating occurs.