choo-content
v1.2.1
Published
Components for data driven apps in choo
Downloads
2
Readme
choo-content
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