If turning to avoid a hazard:
You should brake hard.
You should not brake as it could cause the wheels to lock.
You should turn the wheel very sharply.
You should hold down the brakes until you are past the hazard.
If you are turning to avoid a hazard, do not apply the brakes while you are turning. This could easily lock the wheels and create a skid.