Nightmarish Pawnshop Mystic

    inferno-hyperscript
    TypeScript icon, indicating that this package has built-in type declarations

    7.4.11 • Public • Published

    inferno-hyperscript Travis-CI Status

    Hyperscript syntax for Inferno termplates.

    Usage

    var h = require('inferno-hyperscript');
    
    module.exports = function ExampleComponent(props) {
      return h('.example', [
        h('a.example-link', {
          href: '#'
        }, [
          'Hello',
          props.whom,
          '!'
        ])
      ]);
    };

    Documentation

    h(componentOrTag, properties, children, noNormalize)

    Returns an Inferno VNode from a Hyperscript representation.

    • componentOrTag (Object|String) can be an Inferno component OR tag string with optional css class names and ids in the format h1#some-id.foo.bar. If a tag string, the tag name is parsed out, and the id and className propertires of the properties argument will be modified.
    • properties (Object) (optional) An object containing the properties you'd like to set on the element.
    • children (Array|String) (optional) An array of h() children or strings, This will create childen or text nodes respectively. New in v4.0.0
    • noNormalize Boolean (optional) Set true to avoid normalization process. Tells Inferno to trust the input as is. Used for optimization.

    Install

    npm i inferno-hyperscript

    DownloadsWeekly Downloads

    362

    Version

    7.4.11

    License

    MIT

    Unpacked Size

    26.9 kB

    Total Files

    12

    Last publish

    Collaborators

    • terinjokes
    • longlho
    • nightwolfz
    • lukesheard
    • trueadm
    • havunen