Ranger parts are a bolt-in. Explorer parts take a bit of work.
My green 00 Ranger I stripped a 97/98 Explorer and put those axles in because it was 3.73 with limited slip rear. 31 spline with disks. I was lowering and going V8 too. Front was just bolt-in. Rear I had to rotate the spring perches for pinion angle. Explorer rears have the shock mounts on the U-bolt plates and I kept the spring under axle design since I was lowering anyway.
My Choptop has a rear 8.8 out of a Ranger currently.
Swapping a whole axle is the easiest. I usually check/replace axle bearings and seals and new gear oil when swapping an axle. My Ranger I got new clutch plates for the limited slip rear and swapped those. Some gear oil comes with the limited slip additive and some doesn’t. All that additive does is keep the clutches from grabbing hard, so don’t overdo adding it. I also eliminated a steel plate in favor of an extra clutch disk in my stacks, there’s a thing in the tech library on it.
98-11 for the front axle for Rangers and you can use a rear axle from a 90-08 Ranger with a 4.0 for bolt-in. Explorers are technically 95-01 for the front axle but some of the early ones had a vacuum disconnect on the passenger shaft if I mind right. The two 97/98 Explorers I’ve had in my possession don’t have that but a friend’s 96 does. Rear axle from an Explorer is 91-01, the 91-94 had drum rear and the 95-01 had disk. All Explorers got the 8.8