Inferno v4 正式发布,JavaScript 用户界面库

栏目: 软件资讯 · 发布时间: 7年前

内容简介:Inferno v4 版本已发布,该版本对项目过程逻辑进行了重写,并新增了一些新特性: {Inferno.createPortal(vNode, DOM)} can be used to render vNode to external location in DOM Router has been updated to v...

Inferno v4 版本已发布,该版本对项目过程逻辑进行了重写,并新增了一些新特性:

  • {Inferno.createPortal(vNode, DOM)} can be used to render vNode to external location in DOM

  • Router has been updated to v4 to match React Router v4 API

  • Mobx and Redux integrations have been ported to the latest version

  • new VNodeFlag ReCreate has been added. It can be used to always re-create element instead of diffing it.

  • defaultHooks has been added to Functional Components

  • Inferno now supports IE9+ without polyfills reducing

  • Inferno size has been reduced to 7.8kb gzip including the ES2015 Component!

  • Small performance improvements

function Static() {
    return <div>1</div>;}

Static.defaultHooks = {
    onComponentShouldUpdate() {        return false;
    }
}

export const Com = Static;

  • TouchEvents are now part of Synthetic event system

更多详情可查阅更新日志

Inferno 是一个极其快速,类似 React 的 JavaScript 库,用于构建现代用户界面。


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


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

ACM国际大学生程序设计竞赛题解

ACM国际大学生程序设计竞赛题解

赵端阳//袁鹤 / 电子工业 / 2010-6 / 38.00元

《ACM国际大学生程序设计竞赛题解(1)》可以作为高等院校有关专业的本科和大专学生参加国际大学生程序设计竞赛的辅导教材,或者作为高等院校数据结构、C/C++程序设计或算法设计与分析等相关课程的教学参考书。随着各大专院校参加ACM/ICPC热情的高涨,迫切需要有关介绍ACM国际大学生程序设计竞赛题解的书籍。《ACM国际大学生程序设计竞赛题解(1)》根据浙江大学在线题库的前80题,进行了解答(个别特别......一起来看看 《ACM国际大学生程序设计竞赛题解》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具