Skip to content

Added custom "vanilla" renderer

Choose a tag to compare

@lukas-schardt lukas-schardt released this 28 Jan 12:39
· 406 commits to main since this release

You can now import the custom "vanilla" renderer from the @webtides/elemen-js/src/renderer/vanilla package.

This renderer does not use any external dependencies and can easily be renderered on the server and hydrated on the client.

Example:

import { TemplateElement, html } from "@webtides/element-js/src/renderer/vanilla";

export default class MyVanillaTemplateElement extends TemplateElement {
    template() {
        return html`
             This works.
        `;
    }
}