Add a template for creating web component custom element #154
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SolidJS is a really good framework to quickly build and publish standard web components as custom elements that can be reused from any other framework, but there are currently no templates to help doing so. All current templates are only about creating websites
To get started creating a new custom element with SolidJS to be published it takes a bit of research and work that can be a bit tedious:
This simple template shows a complete web component
<my-counter initial-count="1">
with all required tools and metadata preconfiguredIt uses light DOM and have an attribute in order to show off a bit all features used when defining a component
For the compilation target I used
esnext
like for the other templates, but I am wondering ifes2015
would not be better to recommend for compatibility?@amoutonbrady @ryansolid @birkskyum