You are reading content from Scuttlebutt
@kieran %3VcqEJ0rJwpXoUFitK0BUozo5zupQdU0JUQ9ZHcL6jA=.sha256
Re: %fFAQ35yxX

Some super generic components something along the lines of...

// components/select.js

function Select (collection) {
  h('select', 
    collection.map(option => {
      h('option', { value: option.id, name: option.name })
    })
  )
}
// components/are-you-sure.js

function AreYouSure (form, goBack) {
  h('div', { classList: ['are-you-sure'] }, [
    h('h2', 'Are you sure?'),
    h('button', { 'ev-click': (e) => goBack() }, 'No'),
    h('button', { 'ev-click': (e) => form.submit() }, 'Yes')
  ])
}
Join Scuttlebutt now