MCPcopy Create free account
hub / github.com/bep/gr / CloneElement

Method CloneElement

component.go:368–370  ·  view source on GitHub ↗

CloneElement will, provided that an element has already been created for this component, clone that element with the original element's props with the new props merged in shallowly. New children will replace existing children. If this is the first invocation, a new element will be created. This may

(props Props, children ...Component)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 9

TestCloneElementFunction · 0.80
lifecycle.jsFile · 0.80
composition.jsFile · 0.80
interop.jsFile · 0.80
debounce.jsFile · 0.80
basic.jsFile · 0.80
router.jsFile · 0.80

Calls 1

Tested by 1

TestCloneElementFunction · 0.64