Files: 98627fd6bc0b024c3ddfe4bbe1f0a5bf18e9cbde / components / styles.js
371 bytesRaw
1 | var Component = require('choo/component') |
2 | const h = require('hyperscript') |
3 | const stylesheet = require('../assets/styles') |
4 | |
5 | class 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 | |
20 | module.exports = Styles |
21 |
Built with git-ssb-web