hele-create-class
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

hele-create-class

A component class creator for hele.

Usage

// Use as an es module:
import { createClass } from "hele-create-class";
// Or use as a umd module:
const createClass = HEle.createClass;
// The method returns a component class:
const MyButton = createClass({
    // Pass your methods to it:
    render() {
        // ...
    },
    // Methods are automatically bound to the component instance:
    handleClick() {
        // ...
    },
    // `defaultProps` is also supported:
    defaultProps: {
        // ...
    }
});

Changelog

See CHANGELOG.md.

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i hele-create-class

    Weekly Downloads

    1

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    9.25 kB

    Total Files

    9

    Last publish

    Collaborators

    • 3h