--- 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](http://jsfiddle.net/vjeux/kb3gN/)** * [React JSFiddle without JSX](http://jsfiddle.net/vjeux/VkebS/) ## Starter Kit Download the starter kit to get started.
In the root directory of the starter kit, create a `helloworld.html` with the following contents. ```html ``` 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](http://npmjs.org/)): ``` 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.renderComponent( React.DOM.h1(null, 'Hello, world!'), document.getElementById('example') ); ``` Update your HTML file as below: ```html{6,10}