git ssb

0+

punkmonk / double



Tree: 98627fd6bc0b024c3ddfe4bbe1f0a5bf18e9cbde

Files: 98627fd6bc0b024c3ddfe4bbe1f0a5bf18e9cbde / components / styles.js

371 bytesRaw
1var Component = require('choo/component')
2const h = require('hyperscript')
3const stylesheet = require('../assets/styles')
4
5class Styles extends Component {
6 constructor (id, state, emit) {
7 super(id)
8 this.local = state.components[id] = {}
9 }
10
11 createElement () {
12 return h('div', stylesheet)
13 }
14
15 update () {
16 return true
17 }
18}
19
20module.exports = Styles
21

Built with git-ssb-web