Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const html = require('choo/html')
const component = require('nanocomponent')
const menu = require('../components/menu')
module.exports = function home (state, emit) {
return component({
render: (state, emit) => {
return html`
<body>
<h1>Hello, world</h1>
<div class="columns">
<div class="column is-one-quarter">
${menu(state.sheets, state.activeSheet)}
</div>
<div class="column">
Rows
</div>
</div>
</body>
`
},
onload: (el) => {
console.log('onload')
emit('sheets:getList')
}
})(state, emit)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.