Beer has been used in cooking for centuries. In the Middle Ages, people would have a lot of leftover bread, and they would use it to create beer soup or porridge. More recently, people have begun using beer in recipes to add flavor. If you