React 16.3.0 发布,构建用户界面的 JavaScript 库

栏目: 软件资讯 发布于: 2018-03-30 08:50:02

新疆25选7现场 React 16.3.0 已发布,React 是 Facebook 推出的一个为数据提供渲染为 HTML 视图,用来构建用户界面的开源 JavaScript 库。

React 视图通常采用包含以自定义 HTML 标记规定的其他组件的组件渲染。React 为程序员提供了一种子组件不能直接影响外层组件("data flows down")的模型,数据改变时对 HTML 文档的有效更新,和现代单页应用中组件之间干净的分离。



  • Add a new officially supported context API

  • Add a new?React.createRef()?API as an ergonomic alternative to callback refs.

  • Add a new?React.forwardRef()?API to let components forward their refs to a child.?

  • Fix a false positive warning in IE11 when using?React.Fragment

  • Replace?React.unstable_AsyncComponent?with?React.unstable_AsyncMode

  • Improve the error message when calling?setState()?on an unmounted component.

React DOM

  • Add a new?getDerivedStateFromProps()?lifecycle and?UNSAFE_?aliases for the legacy lifecycles.?

  • Add a new?getSnapshotBeforeUpdate()?lifecycle

  • Add a new?<React.StrictMode>?wrapper to help prepare apps for async rendering.?

  • Add support for?onLoad?and?onError?events on the?<link>?tag

  • Add support for?noModule?boolean attribute on the?<script>?tag

  • Fix minor DOM input bugs in IE and Safari

  • Correctly detect Ctrl + Enter in?onKeyPress?in more browsers

  • Fix containing elements getting focused on SSR markup mismatch

  • Fix?value?and?defaultValue?to ignore Symbol values

  • Fix refs to class components not getting cleaned up when the attribute is removed.?

  • Throw with a meaningful message if the component runs after jsdom has been destroyed.?

  • Don't crash if there is a global variable called?opera?with a?null?value

  • Don't check for old versions of Opera

  • Deduplicate warning messages about?<option selected>

  • Deduplicate warning messages about invalid callback

  • Deprecate?ReactDOM.unstable_createPortal()?in favor of?ReactDOM.createPortal().?

  • Don't emit User Timing entries for context types

  • Improve the error message when context consumer child isn't a function.?

  • Improve the error message when adding a ref to a functional component.?

React DOM Server

  • Prevent an infinite loop when attempting to render portals with SSR.

  • Warn if a class doesn't extend?React.Component.?

  • Fix an issue with?this.state?of different components getting mixed up.

  • Provide a better message when component type is undefined.

React Test Renderer

  • Fix handling of fragments in?toTree().?

  • Shallow renderer should assign state to?null?for components that don't set it.?

  • Shallow renderer should filter legacy context according to?contextTypes.?

  • Add an unstable API for testing asynchronous rendering.

React Is (New)

  • First release of the?new package?that libraries can use to detect different React node types.?

  • Add?ReactIs.isValidElementType()?to help higher-order components validate their inputs.?

React Lifecycles Compat (New)

  • First release of the?new package?to help library developers target multiple versions of React.?

Create Subscription (New)

  • First release of the?new package?to subscribe to external data sources safely for async rendering.?

React Reconciler (Experimental)

  • Expose?react-reconciler/persistent?for building renderers that use persistent data structures.?

  • Pass host context to?finalizeInitialChildren().

  • Remove?useSyncScheduling?from the host config.

React Call Return (Experimental)

  • Fix a crash on updates.


【声明】文章转载自:开源中国社区 [//]

转载请注明:文章转载自 新疆25选7现场
本文标题:React 16.3.0 发布,构建用户界面的 JavaScript 库
计算机科学丛书:Php和Mysql Web开发(原书第4版)
计算机科学丛书:Php和Mysql Web开发(原书第4版)
Luke Welling (作者), Laura Thomson (作者), 武欣 (译者)
《计算机科学丛书:Php和Mysql Web开发(原书第4版)》将PHP开发与MySQL应用相结合,分别对PHP和MySQL做了深入浅出的分析,不仅介绍PHP和MySQL的一般概念,而且对PHP和MySQL的Web应用做了较全面的阐述,并包括几个经典且实用的例子?!都扑慊蒲Т允?Php和Mysql Web开发(原书第4版)》是第4版,经过了全面的更新、重写和扩展,包括PHP 5.3最新改进的特性(例如,更好的错误和异常处理),MySQL的存储过程和存储引擎,Ajax技术与Web 2.0以及Web应用需要注意的安全问题。
  • 以“党建”推动脱贫攻坚前进 2018-12-11
  • 是什么时候颠覆了“文艺应当为千千万万劳动人民服务”这一社会主义文艺路线的?!那一股“伤痕潮”功不可灭,可惜的是“旧伤痕”已经烟灭,取代其的是“挖根潮”。留给工农 2018-12-11
  • 娜扎谈分手张翰“想不起来了” 安全感全来自妈妈 2018-12-10
  • 蓝天保卫战强化督查:发现涉气环境问题187个 2018-12-10
  • 人民日报评论员:弘扬“上海精神” 破解时代难题 2018-12-10
  • 问题是现在人民是受这个社会的迫害者,没理由参与在其中。 2018-12-10
  • 超出你想象  大胡子“绣郎”斩获刺绣界“奥斯卡”  2018-12-09
  • 贸易摩擦升级 美科技股16日收跌 2018-12-09
  • 中央纪委公开曝光八起违反中央八项规定精神问题 2018-12-09
  • 【両会】第13期全人代専門委員会のメンバー 憲法に宣誓 2018-12-08
  • 冯翠玲:把党的声音传递给“国际大家庭” 2018-12-08
  • 权威!个税起征点提至每月5000元,财政部最新解释来了 2018-12-08
  • 广灵县筹建经济技术开发区 2018-12-08
  • 状态差被郎平退货?丁霞归队仍是国内最好二传 2018-12-07
  • 习近平:携手追寻中澳发展梦想 并肩实现地区繁荣稳定 2018-12-07
  • 136| 888| 762| 597| 969| 844| 410| 770| 670| 677|