• withProfiler is a higher order component that wraps a component in a Profiler component. It is recommended that the higher order component be used over the regular Profiler component.

    Type Parameters

    • P extends Record<string, any>


    • WrappedComponent: ComponentType<P>

      component that is wrapped by Profiler

    • Optional options: Pick<Partial<ProfilerProps>, "name" | "disabled" | "includeRender" | "includeUpdates">

      the ProfilerProps you can pass into the Profiler

    Returns React.FC<P>

Generated using TypeDoc