Learn different ways to create custom elements with your framework.
preact-custom-element
package
which makes it a matter of a few lines of code to convert a Preact component into a custom element.
subrender
function above is such an example:
subrender
function for React is very similar: