You are on page 1of 2

6/30/2016

React

Downloads | React
Docs

Support

Download

Blog

Searchdocs...

GitHub

ReactNative

Downloads
DownloadthestarterkittogeteverythingyouneedtogetstartedwithReact.Thestarterkit
includesReactandsomesimpleexampleapps.

DownloadStarterKit15.1.0

Developmentvs.ProductionBuilds
WeprovidetwoversionsofReact:anuncompressedversionfordevelopmentandaminified
versionforproduction.Thedevelopmentversionincludesextrawarningsaboutcommon
mistakes,whereastheproductionversionincludesextraperformanceoptimizationsand
stripsallerrormessages.
Ifyou'rejuststartingout,makesuretousethedevelopmentversion.

IndividualDownloads
React15.1.0(development)

Theuncompressed,developmentversionofreact.jsandreact-dom.jswithinline
documentation(youneedbothfiles).
Code

<scriptsrc="https://fb.me/react-15.1.0.js"></script>
<scriptsrc="https://fb.me/react-dom-15.1.0.js"></script>

React15.1.0(production)

Thecompressed,productionversionofreact.jsandreact-dom.js(youneedboth).
Code

<scriptsrc="https://fb.me/react-15.1.0.min.js"></script>
<scriptsrc="https://fb.me/react-dom-15.1.0.min.js"></script>

ReactwithAdd-Ons15.1.0(development)

Theuncompressed,developmentversionofReactwithoptionaladd-ons.
Code

<scriptsrc="https://fb.me/react-with-addons-15.1.0.js"></script>
<scriptsrc="https://fb.me/react-dom-15.1.0.js"></script>

ReactwithAdd-Ons15.1.0(production)

Thecompressed,productionversionofReactwithoptionaladd-ons.
Code

<scriptsrc="https://fb.me/react-with-addons-15.1.0.min.js"></script>
<scriptsrc="https://fb.me/react-dom-15.1.0.min.js"></script>

AllscriptsarealsoavailableviaCDNJS.

npm
WerecommendusingReactfromnpmwithabundlerlikebrowserifyorwebpack.Youcan
usethe

reactand react-dompackages.Afterinstallingitusing npminstall--savereact

react-dom,youcanuse:
Code

varReact=require('react');
varReactDOM=require('react-dom');

https://facebook.github.io/react/downloads.html

1/2

6/30/2016

Downloads | React
ReactDOM.render(<App/>,...);

Eachoftheadd-onslivesinitsownpackage.
Note:bydefault,Reactwillbeindevelopmentmode.TouseReactinproductionmode,set

theenvironmentvariable

NODE_ENVto production(usingenvifyorwebpack'sDefinePlugin).

Aminifierthatperformsdead-codeeliminationsuchasUglifyJSisrecommendedto
completelyremovetheextracodepresentindevelopmentmode.

Bower
Code

$bowerinstall--savereact

AFacebook&Instagramcollaboration.

20132016FacebookInc.

Acknowledgements

DocumentationlicensedunderCCBY4.0.

https://facebook.github.io/react/downloads.html

2/2

You might also like