React Hookers - v6.3.0
    Preparing search index...

    Function mergeProps

    • Merges multiple props objects into a single object.

      Properties whose names match /^on[A-Z]/ and whose values are functions are treated as event handlers and merged into a single function.

      The "ref" property is treated as a ref and merged into a single callback ref.

      The "className" property values are concatenated.

      Type Parameters

      • T extends any[]

        The props types to merge.

      Parameters

      • ...props: T

        The props objects to merge.

      Returns UnionToIntersection<NonNullable<T[number]>>