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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i any-component

    Weekly Downloads

    2

    Version

    0.2.2

    License

    MIT

    Last publish

    Collaborators

    • zer0latency