Refer to cloneElement in mutation warning

This commit is contained in:
Ben Alpert
2015-03-20 13:35:14 -07:00
parent 44f0e801df
commit 05f6e7de71
+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