Newton's Programmatic Measurements

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

    Install

    npm i any-component

    DownloadsWeekly Downloads

    7

    Version

    0.2.2

    License

    MIT

    Last publish

    Collaborators

    • zer0latency