Open shinobi5 opened 4 years ago
We already have a lit-element template, could someone start there and add haunted easily enough?
If there's enough interest we could add a new template for haunted, but I'd rather have a really good web components template and then make it easy to add new dependencies to it.
Our readme can always recommend good community templates, so there's no reason you can't create it yourself and then PR a link to point new users to it!
Haunted and lit-element aren't really compatible. With haunted you write components with functions where as lit-element you write them with classes. Both use lit-html for the template rendering but they both offer very different ways to write web compoments (functions utilising the react hooks API vs Classes). I think what we have are two options of writing web components that would offer enough variety to users building apps with web components.
My perspective is by bringing a haunted template into the repo, it's maintained internally. Though I guess you need to validate the popularity of haunted in order to prove its usefulness as a core template which is fair enough
Okay, that makes sense about lit-element compatibility.
If this issue gets enough 👍's we can re-consider, otherwise I'd recommend the community template approach.
Sounds good. See how it goes and if there's no interest in it then I'll look at creating a community template.
I have looked through both open and closed issues and I don't see any mentions of an app template for Haunted.
It's quite popular and my preferred way of developing web component based apps utilising the react hooks API.
Is there any intention of adding a template for haunted? If not would you consider a PR to add one (e.g. app-template-haunted)?