# hele-create-class

> A component class creator for hele.

Latest version **0.1.3** (published 2018-08-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install hele-create-class
pnpm add hele-create-class
yarn add hele-create-class
bun add hele-create-class
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2018-08-10 |
| First published | 2018-08-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | 3h |
| Maintainers | 3h |
| Keywords | hele, create, class, es5, component, 3h |

## Links

- npm: https://www.npmjs.com/package/hele-create-class
- Repository: https://github.com/huang2002/hele-create-class
- Homepage: https://github.com/huang2002/hele-create-class#readme
- Issues: https://github.com/huang2002/hele-create-class/issues
- npm.io page: https://npm.io/package/hele-create-class

## Recent versions

- 0.1.3 (latest) — 2018-08-10
- 0.1.2 — 2018-08-07
- 0.1.1 — 2018-08-06
- 0.1.0 — 2018-08-06

## README

# hele-create-class

A component class creator for hele.

# Usage

```js
// 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](CHANGELOG.md).

---
_Source: https://npm.io/package/hele-create-class · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
