基于虚拟 DOM 技术的 JavaScript 库 Nerv

码农软件 · 软件分类 · 常用JavaScript包 · 2019-04-04 18:56:27

软件介绍

Nerv 是一款基于虚拟 DOM 技术的 JavaScript(TypeScript) 库,它提供了与 React 16 一致的使用方式与 API,并且拥有更高的性能表现、更小的包大小以及更好的浏览器兼容性。

特性

  • 与 React 保持一致的API,不需要 nerv-compat

  • 久经战斗洗礼,已经应用于京东 PC 首页与京东旗下 TOPLIFE

  • 强劲的性能

  • IE8 兼容

  • 更小尺寸,9Kb gziped

  • 支持客户端与服务端同构渲染

  • 支持 React 16 的新特性,例如错误处理,Portals,自定义 DOM 属性等等

示例

CodeSandbox Playground 是最简单的开始使用 Nerv 的方式。并且如果你已经使用过 React,你就已经知道如何来使用 Nerv 了。

import Nerv from 'nervjs'
class HelloMessage extends Nerv.Component {
  render() {
    return <div>Hello {this.props.name}</div>
  }
}

Nerv.render(
  <HelloMessage name="Nerv" />,
  document.getElementById('app')
)

本文地址:https://www.codercto.com/soft/d/2863.html

New Dark Age

New Dark Age

James Bridle / Verso Books / 2018-7-17 / GBP 16.99

As the world around us increases in technological complexity, our understanding of it diminishes. Underlying this trend is a single idea: the belief that our existence is understandable through comput......一起来看看 《New Dark Age》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

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

在线 XML 格式化压缩工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具