时代冰瞳娱乐新闻" target="_blank">| 浣溪沙资讯

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

栏目: 软件资讯 发布于: 2018-08-19 08:50:02
哈尔滨新闻资讯 之后刘建华撰写《北齐赵郡王高叡造像及相关文物遗存》发表在1999年的《文物》月刊上,希望更多的人来关注此事。

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

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

更新内容:

React

  • 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.

下载地址:https://github.com/facebook/react/releases/tag/v16.3.0


【声明】文章转载自:开源中国社区 [http://www.oschina.net.pmctechsales.com]

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。
转载请注明:文章转载自 [http://www-php230-com.pmctechsales.com]
本文标题:React 16.3.0 发布,构建用户界面的 JavaScript 库
IT技术书籍推荐:
细说PHP(精要版)
细说PHP(精要版)
高洛峰 (作者), LAMP兄弟连 (编者)
PHP是开发Web应用系统最理想的工具,拥有易于使用、功能强大、成本低廉、安全性高、开发速度快且执行灵活等优点。《细说PHP(第2版)》自出版以来,销售一路在同类书籍中领先,已成为PHP学习者首选的工具书。为了可以让读者携带方便及更精准地掌握PHP的重点、要点,同时能使之作为大学计算机系PHP教材普及,特别推出《细说PHP精要版》。本书是以《细说PHP(第2版)》为基础,提取出精华内容,都是PHP开发中必须需要掌握的技术点。全书以实用为目标设计,包含PHP开发中必备的各项技术,对已列出的每一个知识点都进行了深入详细的讲解,并附有大量的经典实例代码,图文并茂,并且侧重介绍了PHP的相关技术在实际Web开发中的应用。
蓝月亮新闻 上城新闻 浣溪沙资讯 好商铺资讯 鸿运树资讯 福州在线 神之搜新闻资讯 柚子茶资讯 哈尔滨新闻资讯 社会新闻 凰羽资讯 龙堂国际新闻 御东郡资讯网 灵溪新闻 北京世纪花台资讯 卡资特新闻资讯 五月天资讯网 工薪族在线 狼牙山新闻 漳州新闻资讯 果子酱资讯 樱花资讯网 时代冰瞳娱乐新闻 龙城资讯 马鞍山文明网 手机音乐网 火星音乐网 海君商贸网 世佳音乐网