--- id: getting-started title: Getting Started next: tutorial.html redirect_from: "docs/index.html" --- ## JSFiddle The easiest way to start hacking on React is using the following JSFiddle Hello World examples: * **[React JSFiddle](https://jsfiddle.net/reactjs/69z2wepo/)** * [React JSFiddle without JSX](https://jsfiddle.net/reactjs/5vjqabv3/) ## Starter Kit Download the starter kit to get started.
Download Starter Kit {{site.react_version}}
In the root directory of the starter kit, create a `helloworld.html` with the following contents. ```html Hello React!
``` The XML syntax inside of JavaScript is called JSX; check out the [JSX syntax](/react/docs/jsx-in-depth.html) to learn more about it. In order to translate it to vanilla JavaScript we use ` ``` ### Offline Transform First install the command-line tools (requires [npm](https://www.npmjs.com/)): ``` npm install -g react-tools ``` Then, translate your `src/helloworld.js` file to plain JavaScript: ``` jsx --watch src/ build/ ``` The file `build/helloworld.js` is autogenerated whenever you make a change. ```javascript{2} React.render( React.createElement('h1', null, 'Hello, world!'), document.getElementById('example') ); ``` Update your HTML file as below: ```html{6,10} Hello React!
``` ## Want CommonJS? If you want to use React with [browserify](http://browserify.org/), [webpack](https://webpack.github.io/), or another CommonJS-compatible module system, just use the [`react` npm package](https://www.npmjs.com/package/react). In addition, the `jsx` build tool can be integrated into most packaging systems (not just CommonJS) quite easily. ## Next Steps Check out [the tutorial](/react/docs/tutorial.html) and the other examples in the starter kit's `examples` directory to learn more. We also have a wiki where the community contributes with [workflows, UI-components, routing, data management etc.](https://github.com/facebook/react/wiki/Complementary-Tools) Good luck, and welcome!