inferno-create-class
v6.0.0-rc.0 babel react inferno framework interfaces user interfaces class vdom
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);
npm i [email protected]
Homepage
github.com/infernojs/inferno...Metadata
- MIT
- Whatever
- Dominic Gannaway
- released 9/29/2018