What's the best way to deal with rejection?

I've been talking to this girl, at first she seemed very interested but confusingly she done 180 and I think I'm looking at rejection?
What's the best way to deal with rejection?
Post Opinion