message: feat: functional HTMLElement
diff: import { h } from 'preact';
  -import { BaseComponent, BaseProps } from './base';
  -
  -export interface HTMLContentProps extends BaseProps {
  +export function HTMLElement(props: {
  content: string;
  parentElement?: string;
  -}
  -
  -export class HTMLElement extends BaseComponent<HTMLContentProps> {
  - static defaultProps = {
  - parentElement: 'span',
  - };
  -
  - render() {
  - return h(this.props.parentElement, {
  - dangerouslySetInnerHTML: { __html: this.props.content },
  +}) {
  + return h(props.parentElement || 'span', {
  + dangerouslySetInnerHTML: { __html: props.content },
  });
  }
  -}
  