htm with Preact

The htm with Preact renderer is a JSX-like renderer (no transpiler necessary) available in the @ficusjs/renderers package.

import { html, renderer } from 'https://cdn.skypack.dev/@ficusjs/renderers@5/htm-preact'

createCustomElement('test-comp', {
  renderer,
  render () {
    return html`
      <div>Some HTML content with ${someVariable}</div>
    `
  }
})