Understand that No does not mean stop, it means only Not this direction.
When an editor or agent says No, they are simply telling you to go another
way, you cannot go through me. But there are other ways. No one must have
the power to make you stop writing...
This, I think, is the correct way to view rejection.