The root beer of the present-day is not alcoholic. Root beer, in essence, is typically but not exclusively non-alcoholic. Usually, when you get a root beer from a grocery store, you get more or less a soft drink which is not haram.