Slow to Fast: Looking at React Performance Problems
Abhijeet Prasad
Software Engineer at Sentry (sentry.io)
Agenda 📓
How do your users use your web application? 🤔
What are the operations we care about?
Page rendering
User interactions
An example with Sentry
Issue Details
Editing Dashboards
A React component
Under the hood
Goal: Minimize commits
Well, how can you tell?
Visualizing component re-renders
React component flamegraph
Browser Dev Tools
Digging deep into components
Using the React Profiler API
Using the Profiler at Sentry
Using the Profiler at Sentry
Common problems
Fixing the problematic component! 🎯
Memoizing props
Memoizing computations
Lazy loading
Virtualization
Components -> Pages
Sentry Release Page
Start measuring in the field!
Use field data to figure out where to profile further
Install Sentry!
Sentry Performance Monitoring
Thank you