Professional Documents
Culture Documents
Downloads: Development vs. Production Builds
Downloads: Development vs. Production Builds
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
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