Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/idyll-lang/idyll-component
[DEPRECATED] Extensible component to be used in idyll projects
https://github.com/idyll-lang/idyll-component
Last synced: 14 days ago
JSON representation
[DEPRECATED] Extensible component to be used in idyll projects
- Host: GitHub
- URL: https://github.com/idyll-lang/idyll-component
- Owner: idyll-lang
- License: mit
- Created: 2017-02-03T22:41:35.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-26T22:39:12.000Z (about 7 years ago)
- Last Synced: 2024-10-30T00:54:56.430Z (21 days ago)
- Language: JavaScript
- Homepage: https://github.com/idyll-lang/idyll
- Size: 26.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
***THIS PACKAGE HAS BEEN DEPRECATED - THERE IS NO NEED TO USE `idyll-component`, INSTEAD USE `React.Component` DIRECTLY***
# idyll-component
Extensible component to be used in idyll projects## Installation
```
npm install --save idyll-component
```## Usage
```jsx
const React = require('react');
const IDLComponent = require('../idl-component');class CustomComponent extends IDLComponent {
constructor(props) {
super(props);
}handleClick() {
...
this.updateProps({
prop1: newProp1
});
}render() {
return (
{...}
)
}
}CustomComponent.defaultProps = {
...
}module.exports = CustomComponent;
```