grip, sight, press
Firm and proper grip on the gun, sights aligned with the elbow
Proper sight picture
press the trigger straight back
Recoil doesn't enter into it until after you've fired.
Simple mechanics, the devil is in the execution. Some handguns are harder to shoot accurately than others. The Walther P22 is light and jumps on any flaw I have in technique. My Blackhawk .45 came with those awful hard rubber grips. They wanted to twist under firing from recoil. When I swapped them with the single six, the .45 became one of the handguns I fire most accurately. Unless the barrel is leaded, it is all my execution of the basics.