Gently but firmly tell her No, then put her down or move away.
Try to determine what is causing her to act out and try to either avoid or at least prepare for an incident.
Be consistent. Don't ever ignore the behavior. Every time she hits or bites do the same thing.
I have actually bite, and pinched back. It worked well and quickly. We haven't had any issues since then. It worked well with one bite and one pinch each time from Mommy and Daddy. I know some will think this is abuse but this is what worked for us.