How do I do it?

How do you deal with rejection? My first instinct is to just be sad and lay in the dark and look frumpy at school everyday... help me I don’t want to be like this. I’m just completely and utterly sad.