How to not be affected by flaming?

Anything you guys "tell yourselves" when someone starts flaming you? I just went 0/3 in lane as my best champion and was already very demoralized and feeling like I couldn't have done any worse, except when two of my teammates started flaming me saying stuff like "you give me cancer" and "0/3 72 cs you couldn't do much worse could you?" etc. I muted them eventually but it still got me pretty down and away from the "we can recover this and still win" mindset. I reported them (not that it probably does anything, considering how many people do this and deserve to be reported but eh). Any tips to not let it affect you as much, apart from maybe muting sooner? (definitely should have done that one)
Report as:
Offensive Spam Harassment Incorrect Board