mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Refer to cloneElement in mutation warning
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user