cloneWithProps
is now deprecated.
cloneWithProps
is now deprecated. Use React.cloneElement
instead (unlike cloneWithProps
, cloneElement
does not merge className
or style
automatically; you can merge them manually if needed).
(Since version 0.10.0) As of React 0.14, you must use React.cloneElement instead.