React

With Memo

Used to wrap your Progress component with a memo to optimize performance

withMemo()

Import

import { withMemo } from '@bprogress/react';

Type

function withMemo<P extends {
    memo?: boolean;
    shouldCompareComplexProps?: boolean;
}>(Component: React.ComponentType<P>, ignoreKeys?: string[]): React.MemoExoticComponent<React.ComponentType<P>>;

On this page