Add comment to explain string concatenation

This commit is contained in:
Murray M. Moss
2015-07-08 13:26:36 -04:00
parent fa4063455b
commit 334372758c
+3
View File
@@ -1,6 +1,9 @@
var warning = require('./lib/warning');
warning(
false,
// Require examples in this string must be split to prevent React's
// build tools from mistaking them for real requires.
// Otherwise the build tools will attempt to build a 'react-addons-{addon}' module.
'require' + "('react/addons') is deprecated. " +
'Access using require' + "('react-addons-{addon}') instead."
);