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.
/^on[A-Z]/
The "ref" property is treated as a ref and merged into a single callback ref.
"ref"
The "className" property values are concatenated.
"className"
The props types to merge.
The props objects to merge.
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.