基于虚拟 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://codercto.com/soft/d/2863.html

How to Solve It

How to Solve It

Zbigniew Michalewicz、David B. Fogel / Springer / 2004-03-01 / USD 59.95

This book is the only source that provides comprehensive, current, and detailed information on problem solving using modern heuristics. It covers classic methods of optimization, including dynamic pro......一起来看看 《How to Solve It》 这本书的介绍吧!

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

Base64 编码/解码

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

HEX HSV 互换工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具