How can I move on from a breakup?

I just got broken up with a few hours ago and I’m still feeling pretty bad about it. He said he was happier not in a relationship and I just don’t know what to do. I want to focus on myself now but it’s so hard
How can I move on from a breakup?
Post Opinion