Give the hole time to dry before you replace the screws and hinge.
Replace door hinge screws.
If the hole is stripped as well as the screw you can plug the hole with wood matches that are covered in glue.
Remove the screws that hold the loose hinge leaf to the door jamb.
The best way to beef them up is to replace the standard 3 4 in.
You put on the new hinges with the screws that came with them.
Make sure the hinge folds together the same way as the door will close.
Put the hinge in place and install the screws.
Screws straight through the two holes toward the center of the door.
You unscrew the hinge screws from both the door jam and door.
After it has dried get a new screw that is not stripped and screw it in the hole that was repaired.
You test out the new hinges.
Fix it the right way not the wrong way.
Hinge screws with at least two 3 in.
Then bore out the stripped holes with a 3 8 inch diameter bit.
Remove the screws for one of the hinges on both the door and the frame.
Turn the new hinge with the head of the pin turned up.
Screws that go through the jambs and solidly anchor into the framing.
The wrong way is a temporary fix not cool.
With a screwdriver put the rest of the screws into the hinge and the holes.
If the door has a large hinge with four screw holes just drive 3 in.