component-elements
# component-elements These packages provide the ability to use an HTML custom element as the root for your components. In addition, it allows the use of async code resolution if your custom element isn't immediately used, which is a great strategy for reducing code weight. # Getting Started Depending on your component library, visit the relevant package below and follow setup instructions: | Library | Package | | ------- | ---------------------------------------------------------------------------------------------------- | | Preact | [preactement](https://github.com/jahilldev/component-elements/tree/main/packages/preactement#readme) | | React | [reactement](https://github.com/jahilldev/component-elements/tree/main/packages/reactement#readme) | | Vue | <a href="https://vuejs.org/guide/extras/web-components.html" target="_blank">supported natively!</a> | # Acknowledgement This function takes _heavy_ inspiration from the excellent [preact-custom-element](https://github.com/preactjs/preact-custom-element). That library served as a starting point for this package, and all of the Preact guys deserve a massive dose of gratitude. I had slightly different needs, so decided to build this as part solution, part learning excersize.