We provide CDN-hosted versions of React on our download page. These prebuilt files use the UMD module format. Dropping them in with a simple
<script> tag will inject a
React global into your environment. It should also work out-of-the-box in CommonJS and AMD environments.
We have instructions for building from
master in our GitHub repository. We build a tree of CommonJS modules under
build/modules which you can drop into any environment or packaging tool that supports CommonJS.
If you like using JSX, we provide an in-browser JSX transformer for development on our download page. Simply include a
<script type="text/jsx"> tag to engage the JSX transformer. Be sure to include the
/** @jsx React.DOM */ comment as well, otherwise the transformer will not run the transforms.
The in-browser JSX transformer is fairly large and results in extraneous computation client-side that can be avoided. Do not use it in production — see the next section.
If you have npm, you can simply run
npm install -g react-tools to install our command-line
jsx --watch src/ build/. Run
jsx --help for more information on how to use this tool.
The open-source community has built tools that integrate JSX with several editors and build systems. See JSX integrations for the full list.