Merge pull request #2170 from undernewmanagement/patch-1

Added extra explanation for require() statements
This commit is contained in:
Paul O’Shannessy
2014-09-24 16:54:12 -07:00
parent 9f2dc364e0
commit b287e82818
+2
View File
@@ -21,3 +21,5 @@ The add-ons below are in the development (unminified) version of React only:
- [`Perf`](perf.html), for measuring performance and giving you hint where to optimize.
To get the add-ons, use `react-with-addons.js` (and its minified counterpart) rather than the common `react.js`.
When using the react package from npm, just simply `require('react/addons')` instead of `require('react')` to get React with all of the addons.