Skip to content
This repository has been archived by the owner on Jan 4, 2018. It is now read-only.

skatejs/renderer-lit-html

Repository files navigation

This has been moved to the skatejs monorepo!

skatejs/renderer-lit-html

SkateJS renderer for Lit HTML.

Install

npm install skatejs lit-html @skatejs/renderer-lit-html

Usage

This assumes knowledge of SkateJS.

import { html } from 'lit-html';
import { withComponent } from 'skatejs';
import withLitHtml from '@skatejs/renderer-lit-html';

class MyComponent extends withComponent(withLitHtml()) {
  renderCallback() {
    return html`Hello, <slot />!`;
  }
}

About

Lit HTML renderer for SkateJS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published