TMI what is this?

So I shaved my vagina and now I have all these little red dots and they hurt! What is this? And what can I do to prevent this in the future?