The element to clone.
OptionalpropsPatch: objectProps to apply to the cloned element. Existing props are preserved unless they are overridden by a property in this object.
Optional replacement children. Multiple children are supported and are passed to the cloned element in the same order.
A new element with the patched props and, when provided, replacement children.
Creates a new component by cloning an existing component and applying a partial props update.
The original component is not mutated. Existing props are copied first, then the properties in
propsPatchare applied over them. Passing a prop with the valueundefinedfollows the implementation's normal prop-merging behavior.If one or more
childrenarguments are provided, they replace the cloned component's existing children. If no children are provided, the original children are preserved.