Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "clone-element"

Index

Functions

Functions

cloneElement

  • cloneElement(vnode: VNode, props: any, ...newChildren: any[]): VNode
  • 通过VNode对象新建一个自定义的props,children的VNode对象

    Parameters

    • vnode: VNode

      旧vnode

    • props: any

      新的props

    • Rest ...newChildren: any[]

    Returns VNode

Generated using TypeDoc