Function: withComponentRenderTracing

@ottrelite/core.withComponentRenderTracing

withComponentRenderTracing<P>(eventName, api?, WrappedComponent): NamedExoticComponent<P>

High-Order Component that wraps @seeuseComponentRenderTracing hook. For details, please consult the hook's documentation.

Type parameters

NameType
Pextends IntrinsicAttributes

Parameters

NameTypeDefault valueDescription
eventNamestringundefinedThe name of the event to trace.
apiTracingAPI'dev'The API to use for tracing (default is 'dev').
WrappedComponentComponentType<P>undefined-

Returns

NamedExoticComponent<P>

An object containing the markJSRenderEnd function.

Need to boost your app's performance?
We help React Native teams enhance speed, responsiveness, and efficiency.