Function component with external CSS

  
  import { registerFunctionComponent } from './webact.js';

  async function NiceButton() {
    const { html, useCSS } = this;

    await useCSS('./nice-button.css');

    html`
      <button>
        <slot></slot>
      </button>
    `;
  }

  registerFunctionComponent(NiceButton, import.meta.url);
  
  
I am a nice button