How do you prevent razor bumps?

All you need to do is not to shave on dry skin. Always shave when you are in the shower or you have just come out the shower when your legs are wet.