@samitouri / QOS-React-2 / commits / 334372758c

Add comment to explain string concatenation

Murray M. Moss committed Jul 8, 2015 at 13:26 UTC 334372758c27df3a6ef98a4decccef86550fa55f
1 file changed +3
packages/react/addons.js
+3
@@ -1,6 +1,9 @@
1 var warning = require('./lib/warning');
2 warning(
3 false,
4 + // Require examples in this string must be split to prevent React's
5 + // build tools from mistaking them for real requires.
6 + // Otherwise the build tools will attempt to build a 'react-addons-{addon}' module.
7 'require' + "('react/addons') is deprecated. " +
8 'Access using require' + "('react-addons-{addon}') instead."
9 );