One way to fix the stripped hole is to take one or two cardboard matches and dip them into either white glue or wood glue.
How to fix a door hinge that is stripped.
If you have a centering hinge drill use the hinge as a template and the finish repair will be better than new and last for years.
How to fix stripped screw holes in wood.
If the hinge and jamb are painted cut the paint around the leaf with a utility knife.
After you have done that put them in the hole that is stripped.
The wrong way is a temporary fix not cool.
Give the hole time to dry before you replace the screws and hinge.
Diy home improvement tips and hacks.
After time the weight of the door will pull on the hinge and cause the door not to hang straight.
How to tighten stripped hinge screws open the door wide and insert a wedge under the bottom outside corner to level it.
How to repair a door jamb with loos.
Another hint is to use a long screw in one of the holes in the top most hinge long enough to penetrate the stud.