Browse Source

Add info about dev vs. prod builds

Also moved the dev builds first because that's what most people will want.
main
Ben Alpert 11 years ago
parent
commit
a47119e2c9
  1. 34
      downloads.md

34
downloads.md

@ -4,7 +4,7 @@ title: Downloads
layout: single layout: single
--- ---
Download the starter kit to get everything you need to Download the starter kit to get everything you need to
[get started with React](/react/docs/getting-started.html). [get started with React](/react/docs/getting-started.html). The starter kit includes React, the in-browser JSX transformer, and some simple example apps.
<div class="buttons-unit downloads"> <div class="buttons-unit downloads">
<a href="/react/downloads/react-{{site.react_version}}.zip" class="button"> <a href="/react/downloads/react-{{site.react_version}}.zip" class="button">
@ -12,44 +12,50 @@ Download the starter kit to get everything you need to
</a> </a>
</div> </div>
## Individual Downloads ## Development vs. Production Builds
#### <a href="http://fb.me/react-{{site.react_version}}.min.js">React Core {{site.react_version}} (production)</a> We provide two versions of React: an uncompressed version for development and a minified version for production. The development version includes extra warnings about common mistakes, whereas the production version includes extra performance optimizations and strips all error messages.
The compressed, production version of React core
```html If you're just starting out, make sure to use the development version.
<script src="http://fb.me/react-{{site.react_version}}.min.js"></script>
```
#### <a href="http://fb.me/react-{{site.react_version}}.js">React Core {{site.react_version}} (development)</a> ## Individual Downloads
#### <a href="http://fb.me/react-{{site.react_version}}.js">React {{site.react_version}} (development)</a>
The uncompressed, development version of React core with inline documentation. The uncompressed, development version of React core with inline documentation.
```html ```html
<script src="http://fb.me/react-{{site.react_version}}.js"></script> <script src="http://fb.me/react-{{site.react_version}}.js"></script>
``` ```
#### <a href="http://fb.me/react-with-addons-{{site.react_version}}.min.js">React With Add-Ons {{site.react_version}} (production)</a> #### <a href="http://fb.me/react-{{site.react_version}}.min.js">React {{site.react_version}} (production)</a>
The compressed, production version of React with [add-ons](/react/docs/addons.html). The compressed, production version of React core.
```html ```html
<script src="http://fb.me/react-with-addons-{{site.react_version}}.min.js"></script> <script src="http://fb.me/react-{{site.react_version}}.min.js"></script>
``` ```
#### <a href="http://fb.me/react-with-addons-{{site.react_version}}.js">React With Add-Ons {{site.react_version}} (development)</a> #### <a href="http://fb.me/react-with-addons-{{site.react_version}}.js">React with Add-Ons {{site.react_version}} (development)</a>
The uncompressed, development version of React with [add-ons](/react/docs/addons.html). The uncompressed, development version of React with [add-ons](/react/docs/addons.html).
```html ```html
<script src="http://fb.me/react-with-addons-{{site.react_version}}.js"></script> <script src="http://fb.me/react-with-addons-{{site.react_version}}.js"></script>
``` ```
#### <a href="http://fb.me/JSXTransformer-{{site.react_version}}.js">JSX Transform</a> #### <a href="http://fb.me/react-with-addons-{{site.react_version}}.min.js">React with Add-Ons {{site.react_version}} (production)</a>
The compressed, production version of React with [add-ons](/react/docs/addons.html).
```html
<script src="http://fb.me/react-with-addons-{{site.react_version}}.min.js"></script>
```
#### <a href="http://fb.me/JSXTransformer-{{site.react_version}}.js">JSX Transformer</a>
The JSX transformer used to support [XML syntax](/react/docs/jsx-in-depth.html) in JavaScript. The JSX transformer used to support [XML syntax](/react/docs/jsx-in-depth.html) in JavaScript.
```html ```html
<script src="http://fb.me/JSXTransformer-{{site.react_version}}.js"></script> <script src="http://fb.me/JSXTransformer-{{site.react_version}}.js"></script>
``` ```
All scripts are also available via [CDNJS](http://cdnjs.com/#react). All scripts are also available via [CDNJS](http://cdnjs.com/libraries/react/).
## Bower ## Bower

Loading…
Cancel
Save