This is the parenting approach we take with our kids. Focus on the inputs instead of the outputs.
Instead of “wow, you’re smart - you got an a”, say “wow, it looks like you worked really hard. I can tell you took your time and focused hard on the problem”.
With sports, where the focus is on results even at a very young age, we always say “I love watching you try”.