mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #2170 from undernewmanagement/patch-1
Added extra explanation for require() statements
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user