My journal article manuscripts have been rejected many times in the past. I knew that it is a routine of a researcher.
In reality, it is not easy to emotionally deal with it. I have worked several months including a revision that was requested by a journal editor. I was, however, informed that my paper was rejected for publication in the journal.
What is your know-how of emotionally deal with it?