Use copy of cloneWithProps from react internals