sanity-io / block-content-to-hyperscript

Function for transforming Sanity block content to HyperScript
MIT License
17 stars 8 forks source link

Event props doesn't work #12

Open skogsmaskin opened 4 years ago

skogsmaskin commented 4 years ago

I would expect this to work, as it's working with hyperscript:

h(
  'button,
  {
    onclick: e => {
      console.log('You clicked me!');
    },
  },
  'Click me?'
)

But seems like those props are "swallowed" somehow.