Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

element-redom #1588

Open
IFaniry opened this issue Sep 30, 2022 · 0 comments
Open

element-redom #1588

IFaniry opened this issue Sep 30, 2022 · 0 comments

Comments

@IFaniry
Copy link

IFaniry commented Sep 30, 2022

Feature request

For adding a SkateJS Element for RE:DOM, a high-performance JavaScript UI library that doesn't use virtual DOM.

The following uses RedomElement:

import { el, mount } from "redom";

const form = el("form", { className: "bg-white" }, el("input", { type: "email" }));

mount(document.body, form);

and would ( @pakastin ) produce:

<form class="bg-white">
  <input type="email">
</form>

Use case(s)

Improve the Developer Experience of RE:DOM by using lit-html or even jsx syntax via SkateJS.

import Element, { h } from '@skatejs/element-redom';

class Hello extends Element {
  render() {
    return h`Hello, <slot></slot>!`;
  }
}

customElements.define('x-hello', Hello);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant