Skip to content

A mean component-based user interface library for JavaScript

License

Notifications You must be signed in to change notification settings

combojs/combo-js

Repository files navigation

Combo

npm version Code Climate license Gitter

A mean component-based user interface library.

Documentation

Quick Example

More examples can be found here.

var List = new class extends Combo.Component {
  _items() {
    return this.data.items.map((item) => {
      return `
        <li>${item}</li>
      `;
    }).join("");
  }
  render() {
    return `
      <ul>
        ${this._items()}
      </ul>
    `;
  }
}();

List.mount(document.getElementById("root"), {
  items: [
    "Apple",
    "Orange",
    "Banana"
  ]
});

Contributing

See CONTRIBUTING.md