Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

cloneElement

function cloneElement(
vnode: VNode<any>,
props?: any,
...children: ComponentChildren[],
): VNode<any>;
function cloneElement<P>(
vnode: VNode<P>,
props?: any,
...children: ComponentChildren[],
): VNode<P>;
§
cloneElement(vnode: VNode<any>, props?: any, ...children: ComponentChildren[]): VNode<any>
[src]

§Parameters

§
vnode: VNode<any>
[src]
§
props?: any optional
[src]
§
...children: ComponentChildren[] optional
[src]

§Return Type

§
cloneElement<P>(vnode: VNode<P>, props?: any, ...children: ComponentChildren[]): VNode<P>
[src]

§Type Parameters

§Parameters

§
vnode: VNode<P>
[src]
§
props?: any optional
[src]
§
...children: ComponentChildren[] optional
[src]

§Return Type