Last active
September 14, 2023 09:18
-
-
Save acoomans/26841a7588a9fc6bc2733a49352efbbc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import the profiler (be sure to use our Profiler and not React's): | |
import { Profiler } from 'profiler/profiler'; | |
// Wrap the desired component with our Profiler component | |
<Profiler | |
component="ComponentToProfile" | |
id={someId} | |
> | |
<ComponentToProfile>...</ComponentToProfile> | |
</Profiler> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment