In general, there is no way to keep from developing food allergies. There is some evidence that breastfeeding lowers an infant's chance of developing food allergies later.
Some children who develop food allergies outgrow them. However, food allergies are usually lifelong conditions. Effects range from abdominal discomfort to life-threatening anaphylaxis or death. Foods that cause allergic reactions should be avoided.
Food allergies are not contagious and pose no risk to others.