Daughter upset, I’m upset

When my daughter gets upset – she’s mean, nasty, calling me names, hitting me, I get upset some of the time. I don’t know my thoughts, but I don’t want to be around her when she is hitting me or calling me names or telling me she hates me. I do not hit her, call her names or tell her I hate her.