Yet Another Javascript Framework
created by Facebook/Instagram
@kjitu9
Single Page Apps
JSON on Serverside
(Angular, Backbone, Ember)
Just UI
Virtual DOM
Components
One way Data flow
JSX
var HelloMessage = React.createClass({ render: function() { return React.DOM.div( {className: 'mystyle'}, 'Hello ' + this.props.name ); } }); React.renderComponent(HelloMessage({name:"Jitu"}), mountNode);
/** @jsx React.DOM */
var HelloMessage = React.createClass({
render: function() {
return <div>{'Hello ' + this.props.name}</div>;
}
});
React.renderComponent(<HelloMessage name="Jitu" />, mountNode);