Merge pull request #3627 from spicyj/mut-warn-clone

Refer to cloneElement in mutation warning
This commit is contained in:
Ben Alpert
2015-04-08 15:33:56 -07:00
+3 -3
View File
@@ -302,9 +302,9 @@ function warnForPropsMutation(propName, element) {
warning(
false,
'Don\'t set .props.%s of the React component%s. ' +
'Instead, specify the correct value when ' +
'initially creating the element.%s',
'Don\'t set .props.%s of the React component%s. Instead, specify the ' +
'correct value when initially creating the element or use ' +
'React.cloneElement to make a new element with updated props.%s',
propName,
elementInfo,
ownerInfo