From 2fefe1edcea1e8b9bb740582777319df35a599fc Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 14 Apr 2017 00:59:17 +0100 Subject: [PATCH] Add CDN section back --- docs/installation.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/installation.html b/docs/installation.html index 7b0a169edb..dbd292ef1a 100644 --- a/docs/installation.html +++ b/docs/installation.html @@ -231,6 +231,20 @@ npm install --save react react-dom

Include both DefinePlugin and UglifyJsPlugin into your production Webpack configuration as described in this guide.

+

Using a CDN

+ +

If you don't want to use npm to manage client packages, the react and react-dom npm packages also provide single-file distributions in dist folders, which are hosted on a CDN:

+
<script src="https://unpkg.com/react@15/dist/react.js"></script>
+<script src="https://unpkg.com/react-dom@15/dist/react-dom.js"></script>
+
+

The versions above are only meant for development, and are not suitable for production. Minified and optimized production versions of React are available at:

+
<script src="https://unpkg.com/react@15/dist/react.min.js"></script>
+<script src="https://unpkg.com/react-dom@15/dist/react-dom.min.js"></script>
+
+

To load a specific version of react and react-dom, replace 15 with the version number.

+ +

If you use Bower, React is available via the react package.

+