Difference between teething and nightmares

Dawn • Baby girl to arrive April 21

My toddler keeps waking up screaming at night and I don’t know how to tell if it’s his teeth (he’s getting his molars) or another nightmare. Any tips on how you other mamas tell the difference