React is Facebook's open source JavaScript library for building the UI. You can pass multiple types of parameters in the react, such as declarative code, to help you render the UI, a static HTML DOM element, or to pass a dynamic variable, or even an interactive application component. (Text from JS developer Weibo)
Features:
Declarative design: React using declarative paradigms, you can easily describe your application efficiently: Reeact the DOM by simulating performance, minimizing interaction with the DOM. Flexibility: React can work well with libraries or frameworks you know.
Sample
A simple component
The following code will present the "Hello John" in the page container:
[XML] view plain copy/** @jsx react.dom */var hellomessage = React.createclass ({render:function () { Return <div>{' Hello ' + this.props.name}</div>; }}); React.rendercomponent (
For more examples and tutorials, you can visit the official website tutorial: http://facebook.github.io/react/docs/tutorial.html
Official homepage: http://facebook.github.io/react/index.html
Download Address: http://facebook.github.io/react/downloads.html
GitHub Address: Https://github.com/facebook/react