To install React, follow the instructions on GitHub.
If you can see this, React is not working right. If you checked out the source from GitHub make sure to run grunt.
grunt
This is written in vanilla JavaScript (without JSX) and transformed in the browser.
Learn more about React at facebook.github.io/react.
This is written with JSX and transformed in the browser.
{message}
If you can see this, React is not running. Try running:
...
This is written with JSX in a separate file and precompiled to vanilla JS by running:
npm install -g babel cd examples/basic-jsx-precompile/ babel example.js --out-dir=build
This is written with JSX with Harmony (ES6) syntax and transformed in the browser.
This is written with JSX in a CommonJS module and precompiled to vanilla JS by running:
npm start
If you can see this, React is not working right. This is probably because you're viewing this on your file system instead of a web server. Try running
python -m SimpleHTTPServer
This is written with JSX in a separate file and transformed in the browser.
* a: * b: * c: x: {x1}, {x2}
This example demonstrates WebComponent/ReactComponent interoperability by rendering a ReactComponent, which renders a WebComponent, which renders another ReactComponent in the WebComponent's shadow DOM.