Skip to content

Instantly share code, notes, and snippets.

Created July 7, 2018 20:52
What would you like to do?
registerComponent's new version
function registerComponent( { template, style, name } ) {
class UnityComponent extends HTMLElement {
return customElements.define( name, UnityComponent );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment