0.2.2 • Published 7 years ago

any-component v0.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

any-component

Provides either "react", "preact", "inferno" h() and Component class to build library-agnostic components.

Installation

$ npm install --save any-component

OR

$ yarn add any-component

Usage

const { h, Component } = require('any-component');

/** @jsx h */
class MyComponent extends Component {
    render(props) {
        return (
            <div>
                { props.children }
            </div>
        )
    }
}
0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago