```coffeescript
import * as Preact from 'preact'

VNode = Preact.h('a', null).constructor

export createElement = (element, props, children...) ->
  if props? && (Array.isArray(props) || typeof props != 'object' || props instanceof VNode)
    children.unshift props
    props = {}

  Preact.h element, props, ...children

export class Component extends Preact.Component
  constructor: ->
    super()
```

Fix workaround for new Preact 10 release
user
```coffeescript
import * as Preact from 'preact'

export createElement = (element, props, children...) ->
  if props? && (Array.isArray(props) || typeof props != 'object' || props.props?)
    children.unshift props
    props = {}

  Preact.h element, props, ...children

export class Component extends Preact.Component
  constructor: ->
    super()
```
assistant