包详细信息

inferno-create-element

infernojs603.5kMIT9.0.5

Provides methods to create Inferno VNodes

babel, react, inferno, framework

自述文件

inferno-create-element

Inferno package with helpers to create Inferno elements

Install

npm install inferno-create-element

Usage

import { createElement } from 'inferno-create-element';
import { render } from 'inferno';

render(
  createElement('div', { className: 'test' }, "I'm a child!"),
  document.getElementById('app'),
);

更新日志