Kids hitting parents

If your kid/s would to hit you, what would you do? 
I seen this about 4 year old smacking and pulling his mothers hair today at walmart and she said absolutely NOTHING, like she didn't care.