JSPM

inferno-create-element

9.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 150183
  • Score
    100M100P100Q170328F
  • License MIT

Provides methods to create Inferno VNodes

Package Exports

  • inferno-create-element
  • inferno-create-element/dist/index.dev.mjs
  • inferno-create-element/dist/index.mjs

Readme

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'),
);