cloneWithProps should not print warning message when child's ref is copied