From e8e50986c58c9f32a3ae0d1005748ac7db33f01f Mon Sep 17 00:00:00 2001 From: Mark Anderson Date: Tue, 9 Sep 2014 14:39:07 +0200 Subject: [PATCH 1/2] 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 1bd3f6f4a42..fb63271484c 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`. + +If using require in node, then use `require('react/addons')`. From 9e6c442df0550d2bb83be9e01d1de7e5a1bf71dc Mon Sep 17 00:00:00 2001 From: Sheraz Date: Wed, 10 Sep 2014 12:29:54 +0200 Subject: [PATCH 2/2] Updated small change with zuggestions from @zpao --- docs/docs/09-addons.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/09-addons.md b/docs/docs/09-addons.md index fb63271484c..304dfc5f1c8 100644 --- a/docs/docs/09-addons.md +++ b/docs/docs/09-addons.md @@ -22,4 +22,4 @@ The add-ons below are in the development (unminified) version of React only: To get the add-ons, use `react-with-addons.js` (and its minified counterpart) rather than the common `react.js`. -If using require in node, then use `require('react/addons')`. +When using the react package from npm, just simply `require('react/addons')` instead of `require('react')` to get React with all of the addons.