inferno-create-class

v3.0.5
Provides a helper to create Inferno Components without needing ES2015
babel react inferno framework interfaces user interfaces

inferno-create-class

Provides a helper to create Inferno Components without needing ES2015

Note: this is similar to React.createClass in that methods are out-bound.

Install

npm install inferno-create-class

Usage

import { createClass } from 'inferno-create-class';
import { render } from 'inferno';

const MyComponent = createClass({
    displayName: 'MyComponent',
    render: function() {
        return <div>Hello, world!</div>;
    }
});

render(<MyComponent />, container);

Metadata

  • MIT
  • Whatever
  • Dominic Gannaway
  • released 4/19/2017

Downloads