Reflux in newborns..

Has anyone’s newborns had reflux? If so how did you treat it..my daughters pedi has sent in a Zantac prescription that I’m picking up now just wanted to know if anyone has used this and had successful results. My daughter has been spitting up out of her nose and mouth and crying inconsolably 😭