@samitouri / QOS-React-2 / commits / 05f6e7de71

Refer to cloneElement in mutation warning

Ben Alpert committed Mar 20, 2015 at 13:35 UTC 05f6e7de71f030d566ff451d509d5fdde0ae1ed1
1 file changed +3 -3
src/classic/element/ReactElementValidator.js
+3 -3
@@ -302,9 +302,9 @@ function warnForPropsMutation(propName, element) {
302
303 warning(
304 false,
305 - 'Don\'t set .props.%s of the React component%s. ' +
306 - 'Instead, specify the correct value when ' +
307 - 'initially creating the element.%s',
305 + 'Don\'t set .props.%s of the React component%s. Instead, specify the ' +
306 + 'correct value when initially creating the element or use ' +
307 + 'React.cloneElement to make a new element with updated props.%s',
308 propName,
309 elementInfo,
310 ownerInfo