Improve "Can only mount when umounted" message

This commit is contained in:
Ben Alpert committed 2014-01-13 13:26:24 -08:00
1 parent ad6a982cd0
commit 2f027fce2d
1 file changed
+3 -1
+3 -1
View File
@@ -321,7 +321,9 @@ var ReactComponent = {
mountComponent: function(rootID, transaction, mountDepth) {
invariant(
!this.isMounted(),
'mountComponent(%s, ...): Can only mount an unmounted component.',
'mountComponent(%s, ...): Can only mount an unmounted component. ' +
'Make sure to avoid storing components between renders or reusing a ' +
'single component instance in multiple places.',
rootID
);
var props = this.props;