Mindset for BJJ

What should I be thinking to achieve the most in Bjj? You’ve probably thought about this many times. Before a competition, after a win or a loss, or maybe even after a class when you thought you could have done better?