choo-content

1.2.1 • Public • Published

choo-content

npm version build status downloads js-standard-style

Components for data driven apps in choo

Install

$ yarn add choo-content

Usage

choo-content depends on styles from Tailwind. You may add it via sheetify. It's also dependent to choo-component-preview until it's merged to core.

Example

var List = require('choo-content/list')
 
// User list component
class UsersList extends List {
  static identity () {
    return 'users-list' // should be unique within components
  }
 
  getItems () {
    return this.state.users
  }
}
 
// render
(state, emit, render) => {
  render(UsersList, {})
}
 

Please see complete example at example/index.js.

Author

İsmail Demirbilek - @dbtek

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i choo-content

    Weekly Downloads

    1

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    16.4 kB

    Total Files

    17

    Last publish

    Collaborators

    • dbtek