Repository navigation
Expand file tree
/
Copy pathdownloads.html
More file actions
163 lines (143 loc) · 11.8 KB
/
Copy pathdownloads.html
File metadata and controls
163 lines (143 loc) · 11.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Downloads | React</title>
<meta name="viewport" content="width=device-width">
<meta property="og:title" content="Downloads | React">
<meta property="og:type" content="website">
<meta property="og:url" content="https://facebook.github.io/react/downloads.html">
<meta property="og:image" content="https://facebook.github.io/react/img/logo_og.png">
<meta property="og:description" content="A JavaScript library for building user interfaces">
<meta property="fb:app_id" content="623268441017527">
<link rel="shortcut icon" href="/react/favicon.ico">
<link rel="alternate" type="application/rss+xml" title="React" href="https://facebook.github.io/react/feed.xml">
<link rel="stylesheet" href="/react/css/syntax.css">
<link rel="stylesheet" href="/react/css/codemirror.css">
<link rel="stylesheet" href="/react/css/react.css">
<script src="//use.typekit.net/vqa1hcx.js"></script>
<script>try{Typekit.load();}catch(e){}</script>
<!--[if lte IE 8]>
<script src="/react/js/html5shiv.min.js"></script>
<script src="/react/js/es5-shim.min.js"></script>
<script src="/react/js/es5-sham.min.js"></script>
<![endif]-->
<script src="/react/js/codemirror.js"></script>
<script src="/react/js/javascript.js"></script>
<script src="/react/js/react.js"></script>
<script src="/react/js/react-dom.js"></script>
<script src="/react/js/babel-browser.min.js"></script>
<script src="/react/js/live_editor.js"></script>
</head>
<body>
<div class="container">
<div class="nav-main">
<div class="wrap">
<a class="nav-home" href="/react/index.html">
<img class="nav-logo" src="/react/img/logo.svg" width="36" height="36">
React
</a>
<ul class="nav-site nav-site-internal">
<li><a href="/react/docs/getting-started.html">Docs</a></li>
<li><a href="/react/support.html">Support</a></li>
<li><a href="/react/downloads.html" class="active">Download</a></li>
<li><a href="/react/blog/">Blog</a></li>
</ul>
<ul class="nav-site nav-site-external">
<li><a href="https://github.com/facebook/react">GitHub</a></li>
<li><a href="https://facebook.github.io/react-native/">React Native</a></li>
</ul>
</div>
</div>
<section class="content wrap documentationContent nosidebar">
<div class="inner-content">
<h1>Downloads</h1>
<div class="subHeader"></div>
<p>Download the starter kit to get everything you need to
<a href="/react/docs/getting-started.html">get started with React</a>. The starter kit includes React and some simple example apps.</p>
<div class="buttons-unit downloads">
<a href="/react/downloads/react-0.14.7.zip" class="button">
Download Starter Kit 0.14.7
</a>
</div>
<h2><a class="anchor" name="development-vs.-production-builds"></a>Development vs. Production Builds <a class="hash-link" href="#development-vs.-production-builds">#</a></h2>
<p>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.</p>
<p>If you're just starting out, make sure to use the development version.</p>
<h2><a class="anchor" name="individual-downloads"></a>Individual Downloads <a class="hash-link" href="#individual-downloads">#</a></h2><h4><a class="anchor" name="react-0.14.7-development"></a>React 0.14.7 (development) <a class="hash-link" href="#react-0.14.7-development">#</a></h4>
<p>The uncompressed, development version of <a href="https://fb.me/react-0.14.7.js">react.js</a> and <a href="https://fb.me/react-dom-0.14.7.js">react-dom.js</a> with inline documentation (you need both files).</p>
<div class="highlight"><pre><code class="language-html" data-lang="html"><span class="nt"><script </span><span class="na">src=</span><span class="s">"https://fb.me/react-0.14.7.js"</span>
<span class="na">integrity=</span><span class="s">"sha384-xQae1pUPdAKUe0u0KUTNt09zzdwheX4VSUsV8vatqM+t6X7rta01qOzessL808ox"</span>
<span class="na">crossorigin=</span><span class="s">"anonymous"</span><span class="nt">></script></span>
<span class="nt"><script </span><span class="na">src=</span><span class="s">"https://fb.me/react-dom-0.14.7.js"</span>
<span class="na">integrity=</span><span class="s">"sha384-A1t0GCrR06cTHvMjaxeSE8XOiz6j7NvWdmxhN/9z748wEvJTVk13Rr8gMzTUnd8G"</span>
<span class="na">crossorigin=</span><span class="s">"anonymous"</span><span class="nt">></script></span>
</code></pre></div><h4><a class="anchor" name="react-0.14.7-production"></a>React 0.14.7 (production) <a class="hash-link" href="#react-0.14.7-production">#</a></h4>
<p>The compressed, production version of <a href="https://fb.me/react-0.14.7.min.js">react.js</a> and <a href="https://fb.me/react-dom-0.14.7.min.js">react-dom.js</a> (you need both).</p>
<div class="highlight"><pre><code class="language-html" data-lang="html"><span class="nt"><script </span><span class="na">src=</span><span class="s">"https://fb.me/react-0.14.7.min.js"</span>
<span class="na">integrity=</span><span class="s">"sha384-zTm/dblzLXQNp3CgY+hfaC/WJ6h4XtNrePh2CW2+rO9GPuNiPb9jmthvAL+oI/dQ"</span>
<span class="na">crossorigin=</span><span class="s">"anonymous"</span><span class="nt">></script></span>
<span class="nt"><script </span><span class="na">src=</span><span class="s">"https://fb.me/react-dom-0.14.7.min.js"</span>
<span class="na">integrity=</span><span class="s">"sha384-ntqCsHbLdMxT352UbhPbT7fqjE8xi4jLmQYQa8mYR+ylAapbXRfdsDweueDObf7m"</span>
<span class="na">crossorigin=</span><span class="s">"anonymous"</span><span class="nt">></script></span>
</code></pre></div><h4><a class="anchor" name="react-with-add-ons-0.14.7-development"></a>React with Add-Ons 0.14.7 (development) <a class="hash-link" href="#react-with-add-ons-0.14.7-development">#</a></h4>
<p>The uncompressed, development version of React with <a href="/react/docs/addons.html">optional add-ons</a>.</p>
<div class="highlight"><pre><code class="language-html" data-lang="html"><span class="nt"><script </span><span class="na">src=</span><span class="s">"https://fb.me/react-with-addons-0.14.7.js"</span>
<span class="na">integrity=</span><span class="s">"sha384-I5TF2q2QDmB31aN5lcClArdUo+WJH/Yi3hcH3PBVXFe5DYtYCFh7Jx/dmpba12zn"</span>
<span class="na">crossorigin=</span><span class="s">"anonymous"</span><span class="nt">></script></span>
<span class="nt"><script </span><span class="na">src=</span><span class="s">"https://fb.me/react-dom-0.14.7.js"</span>
<span class="na">integrity=</span><span class="s">"sha384-A1t0GCrR06cTHvMjaxeSE8XOiz6j7NvWdmxhN/9z748wEvJTVk13Rr8gMzTUnd8G"</span>
<span class="na">crossorigin=</span><span class="s">"anonymous"</span><span class="nt">></script></span>
</code></pre></div><h4><a class="anchor" name="react-with-add-ons-0.14.7-production"></a>React with Add-Ons 0.14.7 (production) <a class="hash-link" href="#react-with-add-ons-0.14.7-production">#</a></h4>
<p>The compressed, production version of React with <a href="/react/docs/addons.html">optional add-ons</a>.</p>
<div class="highlight"><pre><code class="language-html" data-lang="html"><span class="nt"><script </span><span class="na">src=</span><span class="s">"https://fb.me/react-with-addons-0.14.7.min.js"</span>
<span class="na">integrity=</span><span class="s">"sha384-KPHTQfiYMhtsIRbZcY4ri1lBYZQbj4ePsSdzODR2Bu5L5ts3APVyqwKPBThO5Hgc"</span>
<span class="na">crossorigin=</span><span class="s">"anonymous"</span><span class="nt">></script></span>
<span class="nt"><script </span><span class="na">src=</span><span class="s">"https://fb.me/react-dom-0.14.7.min.js"</span>
<span class="na">integrity=</span><span class="s">"sha384-ntqCsHbLdMxT352UbhPbT7fqjE8xi4jLmQYQa8mYR+ylAapbXRfdsDweueDObf7m"</span>
<span class="na">crossorigin=</span><span class="s">"anonymous"</span><span class="nt">></script></span>
</code></pre></div>
<p>All scripts are also available via <a href="https://cdnjs.com/libraries/react/">CDNJS</
6C07
a>.</p>
<h2><a class="anchor" name="npm"></a>npm <a class="hash-link" href="#npm">#</a></h2>
<p>We recommend using React from npm with a bundler like <a href="http://browserify.org/">browserify</a> or <a href="https://webpack.github.io/">webpack</a>. You can use the <code>react</code> and <code>react-dom</code> packages. After installing it using <code>npm install --save react react-dom</code>, you can use:</p>
<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="kd">var</span> <span class="nx">React</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">'react'</span><span class="p">);</span>
<span class="kd">var</span> <span class="nx">ReactDOM</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">'react-dom'</span><span class="p">);</span>
<span class="nx">ReactDOM</span><span class="p">.</span><span class="nx">render</span><span class="p">(</span><span class="o"><</span><span class="nx">App</span> <span class="o">/></span><span class="p">,</span> <span class="p">...);</span>
</code></pre></div>
<p>Each of the <a href="/react/docs/addons.html">add-ons</a> lives in its own package.</p>
<p><strong>Note:</strong> by default, React will be in development mode. To use React in production mode, set the environment variable <code>NODE_ENV</code> to <code>production</code> (using envify or webpack's DefinePlugin). A minifier that performs dead-code elimination such as <a href="https://github.com/mishoo/UglifyJS2">UglifyJS</a> is recommended to completely remove the extra code present in development mode.</p>
<h2><a class="anchor" name="bower"></a>Bower <a class="hash-link" href="#bower">#</a></h2><div class="highlight"><pre><code class="language-sh" data-lang="sh"><span class="nv">$ </span>bower install --save react
</code></pre></div>
</div>
</section>
<footer class="wrap">
<div class="left">
A Facebook & Instagram collaboration.<br>
<a href="/react/acknowledgements.html">Acknowledgements</a>
</div>
<div class="right">
© 2013–2016 Facebook Inc.<br>
Documentation licensed under <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.
</div>
</footer>
</div>
<div id="fb-root"></div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-41298772-1', 'facebook.github.io');
ga('send', 'pageview');
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=623268441017527";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
</body>
</html>