Skip to content

rand0me/any-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Create vidom-library agnostic components

Resources

License

Stars

Watchers

Forks

Packages

No packages published