An open API service indexing awesome lists of open source software.

https://github.com/huang2002/hele-create-class

A component class creator for hele.
https://github.com/huang2002/hele-create-class

3h class component create es5 hele

Last synced: 11 months ago
JSON representation

A component class creator for hele.

Awesome Lists containing this project

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