react-runtime

v0.14.5-beta.16Published 9 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

react-runtime

Imports Facebook's React user interface library into your app. Access it from the React namespace. Includes the development or production versions, depending on the mode in which your app is running.

This package only provides the runtime library. If you need JSX compilation, Meteor reactive data integration, and other commonly used functionality, add the react package (which includes react-runtime) instead.

To learn how to use it, go to the React website.

1// Code sample of using React without JSX
2var HelloMessage = React.createClass({
3  displayName: "HelloMessage",
4  render: function() {
5    return React.createElement("div", null, "Hello ", this.props.name);
6  }
7});
8
9ReactDOM.render(React.createElement(HelloMessage, {name: "John"}), mountNode);

Check out the React in Meteor guide to learn how to use Meteor and React together to build awesome apps.