开始react最简单的方法就是遵循jsfiddle的hello world例子:
<a href="https://jsfiddle.net/reactjs/69z2wepo/">react jsfiddle</a>
<a href="https://jsfiddle.net/reactjs/5vjqabv3/">react jsfiddle without jsx</a>
如果你刚刚起步,你可以下载starter kit。starter kit包含为浏览器预制的react和react dom,以及帮助你开始的示例。
<a href="http://facebook.github.io/react/downloads/react-15.1.0.zip">下载 starter kit 15.1.0</a>
在starter kit的根目录下创建一个 <code>helloworld.html内容如下:</code>
你的react jsx代码可以在一个独立的文件中。创建如下的 <code>src/helloworld.js</code>
然后从<code>helloworld.html引用它</code>:
注意到一些浏览器(比如chrome)将会加载失败除非它通过http服务.