ReferenceUtils
mergeProps
Utility for combining React props with predictable handler, class, and style precedence
Import
Usage
Pass props in increasing precedence order. Event handlers run right to left, class names concatenate right to left, and rightmost style and other prop values win conflicts.
mergeProps does not compose refs; a rightmost ref replaces earlier refs. Use useComposedRefs when every ref needs the element.