From b287e82818b70f44511a5409bbbb725f22e15cc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Wed, 10 Sep 2014 13:21:47 -0700 Subject: [PATCH] Merge pull request #2170 from undernewmanagement/patch-1 Added extra explanation for require() statements --- docs/docs/09-addons.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/docs/09-addons.md b/docs/docs/09-addons.md index 1bd3f6f4a4..304dfc5f1c 100644 --- a/docs/docs/09-addons.md +++ b/docs/docs/09-addons.md @@ -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.