While both soft drinks use roots in their flavoring, these beverages are very different. Traditionally, sassafras was used in root beer. Now, several flavoring agents work in root beer, including vanilla, licorice, and caramel. Ginger beer always has ginger as its predominant flavor.