A notable strategy for building resilience is gratitude.