1.2.2 • Published 7 years ago

idyll-component v1.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

idyll-component

Extensible component to be used in idyll projects

Installation

npm install --save idyll-component

Usage

const React = require('react');
const IDLComponent = require('../idl-component');

class CustomComponent extends IDLComponent {
  constructor(props) {
    super(props);
  }

  handleClick() {
    ...
    this.updateProps({
      prop1: newProp1
    });
  }

  render() {

    return (
      <div prop1={this.props.prop1} >
        {...}
      </div>
    )
  }
}

CustomComponent.defaultProps = {
  ...
}

module.exports = CustomComponent;
1.2.2

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago