Skip to content

Instantly share code, notes, and snippets.

View shirly-chen-awx's full-sized avatar
🍊
up up!

shirly-chen-awx

🍊
up up!
View GitHub Profile
@bvaughn
bvaughn / index.md
Last active January 4, 2025 10:07
How to use profiling in production mode for react-dom

React recently introduced an experimental profiler API. This page gives instructions on how to use this API in a production release of your app.

Table of Contents

Profiling in production

React DOM automatically supports profiling in development mode for v16.5+, but since profiling adds some small additional overhead it is opt-in for production mode. This gist explains how to opt-in.