React 0.13.3 發布, 構建用戶界面的 JavaScript 庫

jopen 9年前發布 | 6K 次閱讀 React

React 0.13.3 發布,此版本主要有以下更新:

新特性:

  • Added `clipPath` element and attribute for SVG

  • Improved warnings for deprecated methods in plain JS classes

Bug 修復:

  • Loosened `dangerouslySetInnerHTML` restrictions so `{__html: undefined}` will no longer throw

  • Fixed extraneous context warning with non-pure `getChildContext`

  • Ensure `replaceState(obj)` retains prototype of `obj`

  • Test Utils: Ensure that shallow rendering works when components define `contextTypes`

詳細信息請查看:
https://github.com/非死book/react

此版本現已提供下載:

React.js 是 非死book 推出的一個用來構建用戶界面的 JavaScript 庫。

非死book開源了 React,這是該公司用于構建反應式圖形界面的JavaScript庫,已經應用于構建Instagram網站及非死book部分網站。最近出現了 AngularJS、MeteorJS 和Polymer中實現的Model-Driven Views等框架,React也順應了這種趨勢。React基于在數據模型之上聲明式指定用戶界面的理念,用戶界面會自動與底層數據保持同步。與前面提及 的框架不同,出于靈活性考慮,React使用JavaScript來構建用戶界面,沒有選擇HTML。

示例代碼:

/* @jsx React.DOM /
var HelloMessage = React.createClass({
  render: function() {
    return{'Hello ' + this.props.name};
  }
});

React.renderComponent(HelloMessage, mountNode)</pre>
來自:www.oschina.net/news/62343/react-0-13-3-released

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!