Stand-alone React cloneWithProps util that works with multiple versions of React