If you encounter a performance issue in a React application, what steps would you take to diagnose and fix it?

Situational