react-compinators
    Preparing search index...

    Function modDisplayName

    • Update the displayName of the component argument with the result of running f on the displayName of the optional source argument, by default set as component.

      Returns the component argument with its display name modified.

      Type Parameters

      Parameters

      • component: Component

        displayName will be set on this component.

      • source: AnyComponent = component

        displayName will be read from this component. By default, set as component so that you are reading/writing the displayName of a single component.

      Returns (f: (previous: string) => string) => Component