Skip to content

Commit b287e82

Browse files
committed
Merge pull request facebook#2170 from undernewmanagement/patch-1
Added extra explanation for require() statements
1 parent 9f2dc36 commit b287e82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/docs/09-addons.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ The add-ons below are in the development (unminified) version of React only:
2121
- [`Perf`](perf.html), for measuring performance and giving you hint where to optimize.
2222

2323
To get the add-ons, use `react-with-addons.js` (and its minified counterpart) rather than the common `react.js`.
24+
25+
When using the react package from npm, just simply `require('react/addons')` instead of `require('react')` to get React with all of the addons.

0 commit comments

Comments
 (0)