any-component

0.2.2 • Public • Published

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>
        )
    }
}

Package Sidebar

Install

npm i any-component

Weekly Downloads

1

Version

0.2.2

License

MIT

Last publish

Collaborators

  • zer0latency