cloneElement

inline fun <P : Props> cloneElement(element: ReactElement<P>, vararg children: ReactNode?, props: P.() -> Unit): ReactElement<P>(source)