Adding salt to beer may help keep your body hydrated and possibly prevent a hangover, but drinking water is the most important part of rehydrating. Water helps to replenish the fluids lost through sweating and urination, and it helps to flush out toxins from the body. It is important to drink plenty of water before, during, and after drinking alcohol to help prevent dehydration and a hangover.